here are the messages that i get when i try to run the server daemon manually. there is some problem with hostname or something. can anyone plz tell me about it
[root@localhost ~]# /etc/rc.d/init.d/mysqld start Initializing MySQL database: Neither host 'localhost.localdomain' nor 'localhos t' could be looked up with /usr/bin/resolveip Please configure the 'hostname' command to return a correct hostname. If you want to solve this at a later stage, restart this script with the --force option [FAILED] |
I am really concerned about that space character in "localhos t".
Post the results of these two commands: hostname cat /etc/hosts Like this: Code:
ken@u2:~$ hostname |
Here it is .
[root@localhost ~]# hostname localhost.localdomain [root@localhost ~]# cat /etc/hosts [root@localhost ~]# Note: space between the output of these two commands is for clarity only. its not the part of the output |
Quote:
As, root edit /etc/hosts and add this line: Code:
127.0.0.1 localhost localhost.localdomain Code:
hostname localhost |
it is working. First i stopped it and then started it again and its working.
the following command tells me that its working.thanx to u. :) [root@localhost ~]# chkconfig --list|grep mysqld mysqld 0: off 1: off 2: off 3: on 4: off 5: on 6: off but when i try to connect to it, it fails. how can i reset all the passwords previously set. [root@localhost ~]# mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: N O) [root@localhost ~]# mysql -u root -password userprime ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) [root@localhost ~]# mysql -u root ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) and one thing more. how can i get the GUI for Mysql installed. should i get the source or the rmps from mysql site and build it? |
Quote:
NOTE: there is no space between the -p and the password - run it together Code:
mysql -u root -puserprime Whether you build from source or use rpm packages, you must be aware that you are purposely running outdated software. |
it is not working.I have gui tools installed and they give the same error message. Is there any way that i reset the passwords without knowing the original password.
|
Code:
/etc/init.d/mysqld stop |
it worked. Deleriux thanx a lot fellow. that was really helpful.Thank u all who contributed to my message.
|
All times are GMT -5. The time now is 07:24 AM. |