Guest_imported
New member
- Jan 1, 1970
- 0
I use MySQL 3.23.41 and phpMyAdmin 2.2.0.
I want to access my database called books from a PHP script. With phpMyAdmin I create a user called bookorama with the password set to bookorama. In the host field I type localhost. I give this user no global privileges. But I grant him select and insert on the whole database called books. Very strange that then the passoword of that user has been automatically changed to something like 6a27b1810cb043de. Why that? But I set it back to bookorama. Then in my PHP script I try to log on to the database using @ $db = mysql_connect("localhost", "bookorama", "bookorama" But unfortunately $db returns a error, which means that the conncection was refused. Why? I have set up that user with the password!
Please help me on my question. I'm still a beginner.
I want to access my database called books from a PHP script. With phpMyAdmin I create a user called bookorama with the password set to bookorama. In the host field I type localhost. I give this user no global privileges. But I grant him select and insert on the whole database called books. Very strange that then the passoword of that user has been automatically changed to something like 6a27b1810cb043de. Why that? But I set it back to bookorama. Then in my PHP script I try to log on to the database using @ $db = mysql_connect("localhost", "bookorama", "bookorama" But unfortunately $db returns a error, which means that the conncection was refused. Why? I have set up that user with the password!
Please help me on my question. I'm still a beginner.