<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Control WebPanel Wiki &#187; MySQL</title>
	<atom:link href="http://wiki.centos-webpanel.com/category/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://wiki.centos-webpanel.com</link>
	<description>CentOS WebPanel Wiki</description>
	<lastBuildDate>Wed, 12 Feb 2025 20:38:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>MySQL: Recover Crashed innodb tables</title>
		<link>http://wiki.centos-webpanel.com/mysql-recover-crashed-innodb-tables</link>
		<comments>http://wiki.centos-webpanel.com/mysql-recover-crashed-innodb-tables#comments</comments>
		<pubDate>Wed, 12 Feb 2025 20:22:12 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[InnoDB Recovery]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1865</guid>
		<description><![CDATA[How Innodb crash can happen ? - Innodb table can crash if there is power lose for your dedicated server. - Force shutdown of MySQL service can end up in Innodb crash. - Space issue on the serve can case Innodb crash, if the server space is 100% filled and mysql not able to write [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>How Innodb crash can happen ?</strong></p>
<p>- Innodb table can crash if there is power lose for your dedicated server.<br />
- Force shutdown of MySQL service can end up in Innodb crash.<br />
- Space issue on the serve can case Innodb crash, if the server space is 100% filled and mysql not able to write on the disk.<br />
- High load on the server can cause Innodb crash.<br />
- High I/O wait on the disk can also cause MySQL innodb crash.</p>
<p><strong>How to determine if innodb is crashed.?</strong><br />
You can determine this by checking MySQL logs, On most of the servers location of the Log is /var/lib/mysql/HOSTNAME.err<br />
You can also use commands:</p>
<pre>systemctl status mariadb.service
journalctl -xe</pre>
<p><strong>Full MySQL backup</strong><br />
Backup MySQL users and permissions</p>
<pre>pt-show-grants > /root/pt-show-grants.sql</pre>
<p>Backup Full MySQL folder, Make sure MySQL is <strong>STOPPED</strong> for this step</p>
<pre>rsync -a /var/lib/mysql /home/mysql_bkp/ </pre>
<p><strong>Instructions for full mysql reinstall and recovery</strong><br />
If you can't start mysql, you can try by adding the following code in file /etc/my.cnf.d/server.cnf under <strong>[galera]</strong> settings</p>
<pre>innodb_force_recovery = 1</pre>
<p><strong>Now try to start/restart MariaDB</strong></p>
<pre>systemctl restart mariadb.service</pre>
<p>* If started successfully then you can start with backup, please note that MySQL is now in read-only  mode.<br />
* If not starting then try increasing recovery number for one number in each test</p>
<pre>innodb_force_recovery = 2</pre>
<pre>innodb_force_recovery = 3</pre>
<pre>innodb_force_recovery = 4</pre>
<pre>innodb_force_recovery = 5</pre>
<pre>innodb_force_recovery = 6</pre>
<p>When the MySQL is started in recovery mode we need to take backup of all the crashed databases and restore it</p>
<p><strong>Create backup location folders</strong></p>
<pre>mkdir /home/mysql_innodb_recovery
mkdir /home/mysql_innodb_recovery/database_backup
</pre>
<p><strong>Create the list of databases</strong></p>
<pre>mysql -e 'show databases;' | grep -v information_schema | grep -v Database  > /home/mysql_innodb_recovery/database_list.txt</pre>
<p>* Please confirm that all databases are listed in the file /home/mysql_innodb_recovery/database_list.txt</p>
<p><strong>Make backup of each databases including the database called mysql which is very important. </strong></p>
<pre>for db in `cat /home/mysql_innodb_recovery/database_list.txt`; do mysqldump $db > /home/mysql_innodb_recovery/database_backup/$db.sql;done</pre>
<p>* this process can take a lot of time depending on your MySQL disk usage.<br />
* Make sure you confirm that all <strong>.sql</strong> files in folder <strong>/home/mysql_innodb_recovery/database_backup/</strong> are not empty.</p>
<p><strong>Drop current databases</strong> (We can remove them if the backup was successful)</p>
<pre>for db in `cat /home/mysql_innodb_recovery/database_list.txt`; do mysqladmin drop $db;done</pre>
<p>Some database won’t get dropped which can be directly removed using the rm -Rf command</p>
<pre>rm -Rf /var/lib/mysql/DATABASENAME</pre>
<p>Next is to remove ibdata and ib_log files</p>
<pre>rm -f ibdata* ib_logfile*</pre>
<p><strong>Restarting MariaDB</strong><br />
Remove recovery line <strong>innodb_force_recovery</strong> from <strong>/etc/my.cnf.d/server.cnf</strong> and restart MariaDB</p>
<pre>systemctl restart mariadb.service</pre>
<p><strong>Creating Databases</strong><br />
If the MySQL now works we can start restoring databases, first create databases</p>
<pre>for db in `cat /home/mysql_innodb_recovery/database_list.txt`; do mysqladmin create $db;done</pre>
<p><strong>Restoring Databases</strong><br />
Now we will restore the backups we have taken.</p>
<pre>for db in `cat /home/mysql_innodb_recovery/database_list.txt`; do mysqldump $db < /home/mysql_innodb_recovery/database_backup/$db.sql;done</pre>
<p>* This process will take some time, after it is done confirm that there are no any issues in the MySQL logs.</p>
<p>In case of some issues you still have the exact replica of databases in folder /home/mysql_bkp/<br />
MySQL users and permissions are stored in file /root/pt-show-grants.sql<br />
Individual databases backups are stored in .sql files in folder /home/mysql_innodb_recovery/database_backup/</p>
<p>* We suggest to keep all those files few days after the successful restore.</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/mysql-recover-crashed-innodb-tables/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MariaDB Upgrade from 10.2 to 10.4</title>
		<link>http://wiki.centos-webpanel.com/mariadb-upgrade-from-10-2-to-10-4</link>
		<comments>http://wiki.centos-webpanel.com/mariadb-upgrade-from-10-2-to-10-4#comments</comments>
		<pubDate>Sun, 11 Sep 2022 07:10:01 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MariaDB Upgrade]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1824</guid>
		<description><![CDATA[Verify if MariaDB 10.2 is installed rpm -qa&#124;grep -i maria&#124;grep "\-10.2." First you need to change the MariaDB repo and replace it with MariaDB 10.4 repo: sed -i 's/10.2/10.4/g' /etc/yum.repos.d/mariadb.repo Second remove MariaDB 10.2 : systemctl stop mariadb mysql mysqld systemctl disable mariadb rpm --nodeps -ev MariaDB-server Third Install MariaDB 10.4 : yum clean all [&#8230;]]]></description>
				<content:encoded><![CDATA[<div class="st-alert st-alert- ">
Before starting an upgrade please confirm that you have the backup of MySQL databases and users. Default backup is in the folder /backup/mysql
</div>
<p>Verify if MariaDB 10.2 is installed</p>
<pre>rpm -qa|grep -i maria|grep "\-10.2."</pre>
<p><strong>First you need to change the MariaDB repo and replace it with MariaDB 10.4 repo:</strong></p>
<pre>sed -i 's/10.2/10.4/g' /etc/yum.repos.d/mariadb.repo
</pre>
<p><strong>Second remove MariaDB 10.2 :</strong></p>
<pre>systemctl stop mariadb mysql mysqld
systemctl disable mariadb
rpm --nodeps -ev MariaDB-server
</pre>
<p><strong>Third Install MariaDB 10.4 :</strong></p>
<pre>yum clean all
yum -y update "MariaDB-*"
yum -y install MariaDB-server
systemctl enable mariadb
systemctl start mariadb
</pre>
<p><strong>Fourth you need to upgrade your database tables to the latest version:</strong></p>
<pre>mysql_upgrade --force</pre>
<p>After upgrade, you can use "mysql" command to verify the MariaDB version running on your server</p>
<pre>mysql --version</pre>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/mariadb-upgrade-from-10-2-to-10-4/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to connect MySQL database remotely</title>
		<link>http://wiki.centos-webpanel.com/how-to-connect-mysql-database-remotely</link>
		<comments>http://wiki.centos-webpanel.com/how-to-connect-mysql-database-remotely#comments</comments>
		<pubDate>Mon, 14 Mar 2022 20:11:05 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[remote MySQL]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1791</guid>
		<description><![CDATA[How to connect MySQL database remotely - Open MySQL port 3306 or whitelist your IP in the firewall - Create remote MySQL user from MySQL manager in CWP * We recommend whitelisting IP in the firewall as it is a much safer option. Example of whitelisting IP from the command line csf -a 10.10.23.124 "mysql [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>How to connect MySQL database remotely</strong><br />
- Open MySQL port 3306 or whitelist your IP in the firewall<br />
- Create remote MySQL user from MySQL manager in CWP</p>
<p>* We recommend whitelisting IP in the firewall as it is a much safer option.<br />
Example of whitelisting IP from the command line</p>
<pre>csf -a 10.10.23.124 "mysql remote connection"</pre>
<p>Temp allow IP for 24h</p>
<pre>csf -ta 86400 10.10.23.124 "mysql remote connection"</pre>
<p>Remote MySQL user in CWP is under Host.<br />
You can choose from % Any or Specify Remote IP.</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/how-to-connect-mysql-database-remotely/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MariaDB Upgrade to the new version</title>
		<link>http://wiki.centos-webpanel.com/mariadb-upgrade-to-new-version</link>
		<comments>http://wiki.centos-webpanel.com/mariadb-upgrade-to-new-version#comments</comments>
		<pubDate>Tue, 15 Feb 2022 11:04:30 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MariaDB Upgrade]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1751</guid>
		<description><![CDATA[Check which version of MariaDB is installed on your server rpm -qa&#124;grep -i maria MariaDB Repository Changes Modify repo file to the version you want to upgrade Edit File: /etc/yum.repos.d/mariadb.repo [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.2/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 * Modify 10.2 with the version you want to upgrade Example for upgrade to MariaDB 10.5 [&#8230;]]]></description>
				<content:encoded><![CDATA[<div class="st-alert st-alert- ">
Before starting an upgrade please confirm that you have the backup of MySQL databases and users. Default backup is in the folder /backup/mysql</p>
<p>Also, make sure all your scripts/sites are compatible with the new version as there is no return back to an old version.
</p></div>
<p><strong>Check which version of MariaDB is installed on your server</strong></p>
<pre>rpm -qa|grep -i maria</pre>
<p><strong>MariaDB Repository Changes</strong><br />
Modify repo file to the version you want to upgrade<br />
Edit File: /etc/yum.repos.d/mariadb.repo</p>
<pre>[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
</pre>
<p>* Modify 10.2 with the version you want to upgrade<br />
Example for upgrade to MariaDB 10.5</p>
<pre>[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
</pre>
<p><strong>Stop and remove the old version of MariaDB (Databases will not be removed)</strong></p>
<pre>service mysql stop
service mariadb stop
systemctl disable mariadb
rpm --nodeps -ev MariaDB-server
</pre>
<p><strong>Install the new version of MariaDB</strong></p>
<pre>yum clean all
yum -y update "MariaDB-*"
yum -y install MariaDB-server
systemctl enable mariadb
service mariadb start
mysql_upgrade
</pre>
<p><strong>Check for the custom configuration</strong></p>
<pre>diff -Bw /etc/my.cnf.d/server.cnf.rpmsave /etc/my.cnf.d/server.cnf
</pre>
<p>Verify upgraded packages</p>
<pre>rpm -qa|grep -i maria</pre>
<p>The output should look like this (10.5.15 should be replaced with your new version)</p>
<pre>
MariaDB-server-10.5.15-1.el7.centos.x86_64
MariaDB-devel-10.5.15-1.el7.centos.x86_64
MariaDB-common-10.5.15-1.el7.centos.x86_64
MariaDB-compat-10.5.15-1.el7.centos.x86_64
MariaDB-client-10.5.15-1.el7.centos.x86_64
MariaDB-shared-10.5.15-1.el7.centos.x86_64
</pre>
<p>Yum repository list of the available versions<br />
<a href="http://yum.mariadb.org/" title="MAriaDB Repository list" target="_blank">http://yum.mariadb.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/mariadb-upgrade-to-new-version/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MariaDB Upgrade from 10.1 to 10.2</title>
		<link>http://wiki.centos-webpanel.com/mariadb-upgrade-from-10-1-to-10-2</link>
		<comments>http://wiki.centos-webpanel.com/mariadb-upgrade-from-10-1-to-10-2#comments</comments>
		<pubDate>Wed, 09 Dec 2020 06:32:51 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MariaDB 10.1]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1523</guid>
		<description><![CDATA[Verify if MariaDB 10.1 is installed rpm -qa&#124;grep -i maria&#124;grep "\-10.1." Upgrade service mysql stop service mariadb stop systemctl disable mariadb rpm --nodeps -ev MariaDB-server yum -y install MariaDB-server yum -y update "MariaDB-*" systemctl enable mariadb service mariadb start mysql_upgrade Check for the custom configuration diff -Bw /etc/my.cnf.d/server.cnf.rpmsave /etc/my.cnf.d/server.cnf Verify upgraded packages rpm -qa&#124;grep -i [&#8230;]]]></description>
				<content:encoded><![CDATA[<div class="st-alert st-alert- ">
Before starting an upgrade please confirm that you have the backup of MySQL databases and users. Default backup is in the folder /backup/mysql
</div>
<p>Verify if MariaDB 10.1 is installed</p>
<pre>rpm -qa|grep -i maria|grep "\-10.1."</pre>
<p>Upgrade</p>
<pre>
service mysql stop
service mariadb stop
systemctl disable mariadb
rpm --nodeps -ev MariaDB-server
yum -y install MariaDB-server
yum -y update "MariaDB-*"
systemctl enable mariadb
service mariadb start
mysql_upgrade
</pre>
<p>Check for the custom configuration</p>
<pre>diff -Bw /etc/my.cnf.d/server.cnf.rpmsave /etc/my.cnf.d/server.cnf
</pre>
<p>Verify upgraded packages</p>
<pre>rpm -qa|grep -i maria|grep "\-10.2."</pre>
<p>The output should look like this</p>
<pre>
MariaDB-compat-10.2.36-1.el7.centos.x86_64
MariaDB-server-10.2.36-1.el7.centos.x86_64
MariaDB-common-10.2.36-1.el7.centos.x86_64
MariaDB-shared-10.2.36-1.el7.centos.x86_64
MariaDB-client-10.2.36-1.el7.centos.x86_64
</pre>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/mariadb-upgrade-from-10-1-to-10-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Adminer Database management</title>
		<link>http://wiki.centos-webpanel.com/how-to-install-adminer-database-management</link>
		<comments>http://wiki.centos-webpanel.com/how-to-install-adminer-database-management#comments</comments>
		<pubDate>Wed, 05 Jun 2019 12:47:53 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[adminer]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1165</guid>
		<description><![CDATA[Database management in a single PHP file website: https://www.adminer.org/ 1.Download Adminer from the downloads page cd /usr/local/cwpsrv/var/services/ mkdir adm;cd adm https://github.com/vrana/adminer/releases/download/v4.7.1/adminer-4.7.1.php mv adminer-4.7.1.php adminer.php cd /usr/local/cwpsrv/var/services/ chown cwpsvc:cwpsvc -R adm 2.Add below config to /usr/local/cwpsrv/conf/cwp_services.conf location /adm { root /usr/local/cwpsrv/var/services; index index.html index.htm index.php adminer.php; location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_read_timeout [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>Database management in a single PHP file</strong><br />
website: https://www.adminer.org/</p>
<p>1.Download Adminer from the downloads page</p>
<pre>cd /usr/local/cwpsrv/var/services/
mkdir adm;cd adm

https://github.com/vrana/adminer/releases/download/v4.7.1/adminer-4.7.1.php

mv adminer-4.7.1.php adminer.php
cd /usr/local/cwpsrv/var/services/
chown cwpsvc:cwpsvc -R adm</pre>
<p>2.Add below config to /usr/local/cwpsrv/conf/cwp_services.conf</p>
<pre>
location /adm {
    root /usr/local/cwpsrv/var/services;
    index  index.html index.htm index.php adminer.php;

    location ~ \.php$ {
        try_files $uri =404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_read_timeout 600;
        fastcgi_pass    unix:/usr/local/cwp/php71/var/sockets/cwpsvc.sock;
        fastcgi_index   index.php;
        fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_param   SCRIPT_NAME   $fastcgi_script_name;
        fastcgi_param   PHP_ADMIN_VALUE "open_basedir = /usr/local/cwpsrv/var/services/adm/:/tmp/";
        include                 fastcgi_params;
    }

    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
        access_log    off;
        log_not_found    off;
        expires 1M;
    }
}
</pre>
<p>3. Restart cwpsrv</p>
<pre>sh /scripts/restart_cwpsrv</pre>
<p>4.login to Adminer</p>
<p>https://IP:2031/adm</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/how-to-install-adminer-database-management/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Error: Too many connections</title>
		<link>http://wiki.centos-webpanel.com/mysql-error-too-many-connections</link>
		<comments>http://wiki.centos-webpanel.com/mysql-error-too-many-connections#comments</comments>
		<pubDate>Fri, 03 May 2019 05:36:49 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Error: Too many connections]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1139</guid>
		<description><![CDATA[Error on the website or in cwp: ERROR 1040 (HY000): Too many connections PHP Warning: mysqli_connect(): (HY000/1040): Too many connections The default value for the maximum permitted number of simultaneous client connections is 150. If you have sites with high peaks or high traffic then you can increase the limit. Check the current connection limits [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Error on the website or in cwp:</p>
<p>ERROR 1040 (HY000): Too many connections<br />
PHP Warning: mysqli_connect(): (HY000/1040): Too many connections</p>
<p>The default value for the maximum permitted number of simultaneous client connections is 150.</p>
<p>If you have sites with high peaks or high traffic then you can increase the limit.</p>
<p><strong>Check the current connection limits</strong></p>
<pre>mysql -e "show variables like '%connection%';"</pre>
<p>To increase the limits you can edit this file <strong>/etc/my.cnf.d/server.cnf </strong><br />
Add <strong>max_connections = 500</strong> under [mysqld] line.</p>
<p>For the new values to get accepted you need to restart the mysql server.</p>
<pre>service mysql restart</pre>
<p>Now you can recheck again if the limits got increased.</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/mysql-error-too-many-connections/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Manager NOT working</title>
		<link>http://wiki.centos-webpanel.com/mysql-manager-not-working</link>
		<comments>http://wiki.centos-webpanel.com/mysql-manager-not-working#comments</comments>
		<pubDate>Mon, 21 Jan 2019 06:57:20 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Manager NOT working]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1081</guid>
		<description><![CDATA[MySQL Manager in CWP not working issues: - list of databases is not shown - can't create new database - can't create new user Most common issues are that you have added invalid config into mysql config files. You can check this from the command line by using one of the following commands mysql --version [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>MySQL Manager in CWP not working issues:<br />
- list of databases is not shown<br />
- can't create new database<br />
- can't create new user</p>
<p>Most common issues are that you have added invalid config into mysql config files.<br />
You can check this from the command line by using one of the following commands</p>
<p>mysql --version<br />
mysql -e "show databases;"</p>
<p>For MariaDB which is default with CWP please note that you need to add config into file<br />
/etc/my.cnf.d/server.cnf under [mysqld]</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/mysql-manager-not-working/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Login details</title>
		<link>http://wiki.centos-webpanel.com/mysql-login-details</link>
		<comments>http://wiki.centos-webpanel.com/mysql-login-details#comments</comments>
		<pubDate>Thu, 20 Sep 2018 10:50:50 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql-login-details]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1016</guid>
		<description><![CDATA[You can find MySQL root password in the file /root/.my.cnf: Example from the ssh/shell cat /root/.my.cnf [client] password=ydVg5g3Wz2FH user=root ** MySQL root password in this case would be ydVg5g3Wz2F Users can log in to MySQL/PhpMyAdmin by using the same login credentials as for the user control panel. You can also make additional mysql users by [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>You can find MySQL root password in the file /root/.my.cnf:</p>
<p>Example from the ssh/shell</p>
<pre>cat /root/.my.cnf
[client]
password=ydVg5g3Wz2FH
user=root
</pre>
<p>** MySQL root password in this case would be ydVg5g3Wz2F</p>
<p>Users can log in to MySQL/PhpMyAdmin by using the same login credentials as for the user control panel.<br />
You can also make additional mysql users by using the mysql manager in the admin or user panel.</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/mysql-login-details/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Import / Export MySQL Database</title>
		<link>http://wiki.centos-webpanel.com/import-export-mysql-database</link>
		<comments>http://wiki.centos-webpanel.com/import-export-mysql-database#comments</comments>
		<pubDate>Sun, 26 Jun 2016 07:10:45 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=563</guid>
		<description><![CDATA[How to import or export MySQL database with command line. This is also useful when working with big databases. Export database info file mysqldump DATABASE-NAME > FILE-NAME.sql Export database into compressed file to save space mysqldump DATABASE-NAME &#124; gzip FILE-NAME.sql.gz Export database into compressed file with date name to save space mysqldump DATABASE-NAME &#124; gzip [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>How to import or export MySQL database with command line.</strong><br />
<em>This is also useful when working with big databases.</em></p>
<p><strong>Export database info file</strong></p>
<pre>mysqldump DATABASE-NAME > FILE-NAME.sql</pre>
<p><strong>Export database into compressed file to save space</strong></p>
<pre>mysqldump DATABASE-NAME | gzip FILE-NAME.sql.gz</pre>
<p><strong>Export database into compressed file with date name to save space</strong></p>
<pre>mysqldump DATABASE-NAME | gzip > "FILE-NAME_`date +%e_%b_%Y`.sql.gz"</pre>
<p><strong>Import database</strong></p>
<pre>mysql DATABASE-NAME < FILE-NAME.sql
mysql mojtest_test1 < mojtest_test1.sql</pre>
<p><strong>Import compressed database .gz file</strong></p>
<pre>
gunzip FILE-NAME.sql.gz
mysql DATABASE-NAME < FILE-NAME.sql
mysql mojtest_test1 < mojtest_test1.sql</pre>
<p><strong>How to create MySQL/MariaDB database and user</strong></p>
<p><object width="700" height="425"><param name="movie" value="https://www.youtube.com/v/_4WYEi9NLXY?version=3&amp;showinfo=0&amp;theme=light&amp;fs=1&amp;rel=0&amp;iv_load_policy=3&amp;modestbranding=1"></param><param name="allowScriptAccess" value="always"></param><param name="allowFullScreen" value="true"></param><embed src="https://www.youtube.com/v/_4WYEi9NLXY?version=3&amp;showinfo=0&amp;theme=light&amp;fs=1&amp;rel=0&amp;iv_load_policy=3&amp;modestbranding=1" type="application/x-shockwave-flash" allowScriptAccess="always" allowfullscreen="true" width="700" height="425"></embed></object></p>
<p>For importing very big databases maybe you will also need to add this into <strong>/etc/my.cnf.d/server.cnf </strong>under <strong>[mysqld]</strong></p>
<pre>wait_timeout = 86400
max_allowed_packet=256M
</pre>
<p><strong>phpMyAdmin (MySQL Database manager)</strong><br />
php server configuration: /usr/local/cwp/php71/php.ini</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/import-export-mysql-database/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
