|
||||||||||
|
|
How to change Mysql database directory to another partition in cPanel. /var patition fullJanuary 7, 2010 on 1:09 pm | In Centos, Cpanel, Linux, Mysql | No CommentsHi guys, you might have faced the issue of /var partition gettting full regularly due to database directory. If you have a larger partition with free space, then it is possible to move the database directory to the larger partition. Here are the steps Switch off the database server while we are moving the databases.
I am considering that I have enough space in /home partition. Here goes my new database data directory as /home/mysql Now it is better to copy the database first, rather than move.
We are copying the database to the new location since it is better to revert back the settings with minimum downtime, if anything goes wrong. move to /tmp
Take a backup of /etc/my.cnf Now edit /etc/my.cnf
If the socket file is specified, comment it out. Now move to /var/lib/mysql and create a symblink
(Please note that you don’t specify the socket file location in my.cnf since it causes issues with phpMyadmin) For, cPanel server, edit the phpMyadmin configuration
add the following lines. If they already exist, edit as below.
Now start the database server.
If it starts fine, you are done. Check the database connections of your site. Suggestions, questions are welcome. PhpMyAdmin InstallationJanuary 8, 2009 on 5:48 pm | In Mysql, PHP | No CommentsPhpMyAdmin Installation for a domain is so easy. Enter into your webdirectory (public_html) Download the source into it. From shell wget http://jaist.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-3.1.1-english.tar.gz or download the source from http://jaist.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-3.1.1-english.tar.gz and upload it via FTP to your public_html extract the contents tar -zxf phpMyAdmin-3.1.1-english.tar.gz Alternatively you may use the filemanger extract option for the purpose. you can now access your phpmyadmin using the link www.yourdomain.com/phpMyAdmin-3.1.1-english/ Before that you need to configure that. You need to have 1 database 2 database user 3 database user password. Now navigate to the directory libraries under /phpMyAdmin-3.1.1-english/ you will have a file named config.default.php. You need to edit this file =================== Update the above with database name, username, password, control user and password which can be the same as db user and password. Now try accessing the link www.yourdomain.com/phpMyAdmin-3.1.1-english/ Thats all. MySql >= 4.1 Client does not support authentication protocol…May 17, 2008 on 5:13 am | In Mysql | No CommentsIf you upgrade your MySql server to >= 4.1 you might get the following error:
This happens because the latest versions of MySql uses a new format for the password (it’s a longer hash). In order for old clients to continue to use the newer server, you have to set the passwords on the server to their old format or upgrade your client. Because upgrading the client can sometimes be a pain, it’s often easier to just update the passwords to the old format on the server. Run mysql and login as root: Then, paste the following command, editing as necessary, to change the password of the user to the old format. UPDATE mysql.user After you have set the passwords to the old format, flush the tables. flush privileges; Then exit the mysql client with “quit” and you are set. For windows. In my.ini file in the mySQL directory (C:\Program Files\MySQL\MySQL Server 4.1\my.ini), old_passwords Mysql History Commands typedMay 7, 2008 on 9:35 am | In Mysql | No CommentsCheck your Mysql history file ====================== If you don’t find the file under /root, find out the file using ====================== |
![]() Powered and designed by Presoon.com. |