Wednesday, September 30, 2015

HOW TO INSTALL MYSQL ON ARCH LINUX 2015

I am now using Arch Linux. It is cool and simple. And I have just dropped Ubuntu Linux. Installing LAMP [ Linux Apache Mysql PHP] is too easy there. Just type apt-get install lamp^ and all configurations are autometically performed. But in case of Arch , it i is little different,  but not so hard.
To install MySQL server , just type --
pacman -S mariadb 
and mariadb [ open source fork of MySQL ] .
Now you have execute your second command which is --
sudo mysql_install_db --user=mysql --basedir=/usr/ --ldata=/var/lib/mysql/
Now secure your mySQL installation by typing --
mysql_secure_installation 
Here you can set your mySQL root passcode and disable anonymous login.
That's it.
You can log in and enjoy mySQL.  

1 comment:

  1. Mysql server needs to be restarted before mysql secured installation.
    To start mysql server , type systemctl start mysqld or systemctl restart mysqld.

    ReplyDelete

Manjaro Linux

I am switching to Manjaro Linux ... But i have always a hidden love for Arch. The main reason behind is stability. I need more stable syst...