Initialize MySQL for Slackware

After default installation of Slackware, MySQL can't be started correctly. We should do some work for initialization. The following steps have been tested on Slackware64 13.1. Remember to replace MYSQL_PASSWORD with your own password for root user of MySQL.

sudo -u mysql /usr/bin/mysql_install_db
/etc/rc.d/rc.mysqld start
/usr/bin/mysqladmin -u root password 'MYSQL_PASSWORD'
/usr/bin/mysql_secure_installation

According to information during initialization, "/usr/bin/mysql_secure_installation" step is recommended for production servers.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s