According to the mySql manual, you should set a password for all users and remove the row in the mysql.user table that has
Host=âlocalhostâ and User = ''. Youâre also supposed to add a password for the root user. I followed these instructions but now canât logon:
C:\> C:\mysql\bin\mysql mysql
mysql> DELETE FROM user WHERE Host='localhost' AND User='';
mysql> QUIT
C:\> C:\mysql\bin\mysqladmin reload
C:\> C:\mysql\bin\mysqladmin -u root password your_password
************************************************** ***********
I am logging on to my laptop and according to the mySql documentation (3.1 Connecting to and disconnecting from the Server) I should only need a hostname if the server runs on a machine other than the one where I log on. However, Iâm getting the error message below.
C:\mysql\bin>mysql -u root -p
Enter password: *********
ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)
How can I resolve this? FYI, the operating system is Windows NT.
Also, according to the mySql documentation (Connector/ODBC with
VB â ADO, DAO, and RDO) in the connection string you should specify a username and password. Will any username and password that has been granted privileges be sufficient or is there supposed to be one username and password for a particular database?
Robin