Computing.Net > Forums > Web Development > use mysql database problem

use mysql database problem

Reply to Message Icon

Original Message
Name: gvm9999
Date: January 24, 2005 at 11:34:04 Pacific
Subject: use mysql database problem
OS: Win XP SP2
CPU/Ram: 2GHZ
Comment:

I'm setting up a local webserver.
So I installed Apache and PHP.
These work fine.

But now I want to install mySQL so I can use databases.

So I installed mySQL (v3.23 I think) and started the server with (mysqld --standalone).
After that I start mysql with the command mySQL of course:D and try to use the standard database called mysql where all the login settings are(I need this for adding a user for php).But I get this error message: ERROR 1044: Access denied for user: '@localhost' to database 'mysql' .
What could be the problem?

Hope someone can help me.


Report Offensive Message For Removal

Response Number 1
Name: SN
Date: January 24, 2005 at 11:40:02 Pacific
Subject: use mysql database problem
Reply: (edit)

login with the default username and password, root and blank.

c:\>mysql -u root -p

Then it asks you for a password, and just press enter since the default password is blank.

Obviously, if this database is on the web, you should change the default username and password to something else.

-SN


Report Offensive Follow Up For Removal

Response Number 2
Name: gvm9999
Date: January 24, 2005 at 12:39:11 Pacific
Subject: use mysql database problem
Reply: (edit)

OK that problem is solved.Thanx alot for that mate.

but I'm new to mysql and I want to change some of the fields of some of the users(there is no password set for root).

I just dont want to get it messed up so I ask.

mySQL rules :-D :-P


Report Offensive Follow Up For Removal

Response Number 3
Name: Don Arnett
Date: January 24, 2005 at 13:41:11 Pacific
Subject: use mysql database problem
Reply: (edit)

Now it's time for a MySQL tutorial, else you'll be asking for every command that you want to do.

I did a google search on "mysql tutorial" and came up with a number of tutorials

Be sure to come back and let us know if our suggestions helped!


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: use mysql database problem

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software