Discussion in 'Installation/Configuration' started by itanium, Sep 5, 2009.
Please see my post above for the instructions in case that the uninstall script fails.
Sometimes I feel I have too little experience with linux
How can I delete the ispconfig user in the mysql.user table?
When I connect to the main server I don't find a mysql.user table.
The easiest way is to use phpmyadmin. Every mysql database server has a database called mysql and it must contain several tables incl. a user table.
I deleted the mysql.user table. But now I can't login to mysql anymore all users are denied even root.
Help.... how to restore the mysql.user database without access to mysql??
What I have done to fix it.
Edited the /etc/mysql/my.cnf file. I have added
. Restarted the mysql server
I now was able to get into mysql without login and password. I imported the backupped mysql.user table. Deleted the "skip-grant-tables" from the my.cnf file. Rebooted the server and everyting was fine again. Phoeffffff.
Another question now. What should I delete from the mysql.user table. I know now not the whole table.
Please delet just the record for the user named "ispconfig" instead of the complete table. Look also trough all other tables in the database "mysql" and delete records were the username is "ispconfig". Then restart mysql.
Sorry for my noob problems
I find this in the DB table:
*localhost dbispconfig ispconfig Y Y Y Y N N N N N N N N N N N N N
*192.168.1.102 dbispconfig ispcsrv6 Y Y Y Y N N N N N N N N N N N N N
*126.96.36.199 dbispconfig ispcsrv2 Y Y Y Y N N N N N N N N N N N N N
*nameofhost dbispconfig ispcsrv6 Y Y Y Y N N N
And this in the user table:
*localhost ispconfig *password* N N N N N etc.
*% ispconfig *password* Y Y Y Y etc.
Please tell me what should I do?
So if i'm right I should delete:
**localhost dbispconfig ispconfig Y Y Y Y N N N N N N N N N N N N N from the DB table.
**localhost ispconfig *password* N N N N N etc.
**% ispconfig *password* Y Y Y Y etc. from the USER table right?
Delete all entry for the user with the name "ispconfig" and also all "ispcsrv" users (you did not mentioned that this is the master database of a multiserver setup. After you cleaned this up, yopu will ahve to reinstall all slave servers too.
So I deleted all the entries mentioned.
I reinstalled ispconfig via de 2nd server and selected expert setup.
Everyting was installed succesfully. But when I want to logon to ispconfig now I get these mysql errors:
What to do?
Also I notice that my sites are very slow. Also to get into ispconfig is very slow and into /phpmyadmin as well. When I restart apache it's speed is normal but decreases within minutes.
Please see my post above. If this is a multiserver setup, you have to reinstall all nodes incl. the master and the master has to be installed first. On a reinstall you will loose all settings.
What to do next?
OK I'm having to many newbie problems to get a second server installed. So I will cancel this at this moment. I now just want one server. The master server is allready installed, online and running. How will I be able to login again on the main server?
Ok, then you will have to copy back your backup of the mysql usertable.
I imported the last mysql table backup dump but still the access denied messages on ispconfig control panel.
Have you reloaded mysql?
Yes I restarted mysql.
Any other ideas?
Run the ispconfig 188.8.131.52 update again on the master server as described in this thread (the manual update instructions):
It will reconfigure the database permissions for the ispconfig user on the master server.
I did the manual update. Restarted mysql after it. When i connect to the ispconfig control panel I get this error on top of the page:
Please check if you are able to login to mysql with the login details in the file /usr/local/ispconfig/interface/lib/config.inc.php when you use the "mysql" command on the shell.
Separate names with a comma.