Installing MySQL
Install MySQL as
root:
# apt-get install python-mysqldb mysql-server
# yum install mysql mysql-server MySQL-python
# zypper install mysql-community-server-client mysql-community-server \
python-mysql
During the install, you'll be prompted for the mysql root
password. Enter a password of your choice and verify it.
Use sed to edit
/etc/mysql/my.cnf to change
bind-address from localhost (127.0.0.1) to
any (0.0.0.0) and restart the mysql service, as root.
# sed -i 's/127.0.0.1/0.0.0.0/g' /etc/mysql/my.cnf
# service mysql restart
Set MySQL to start the daemon every time you start and then start the server.
# chkconfig --level 2345 mysqld on
# service mysqld start
Set MySQL to start the daemon every time you start and then start the server.
# systemctl enable mysqld.service
# systemctl enable mysqld.service