MySQL is an open-source relational database that is free and widely used. It is a good choice if you know that you need a database but don’t know much about all of the available options.
This article describes a basic installation of a MySQL database server on CentOS Linux. You might need to install other packages to let applications use MySQL, like extensions for PHP. Check your application documentation for details.
Use the following command to stop MariaDB:
1. At the command prompt, run the following command to launch the
2. When you’re prompted for a password, enter the one that you set at installation or, if you haven’t set one, press Enter to submit no password.
Source : Rackspace
This article describes a basic installation of a MySQL database server on CentOS Linux. You might need to install other packages to let applications use MySQL, like extensions for PHP. Check your application documentation for details.
Install MariaDB
Install the MariaDB server through the CentOS package manager (yum) by running
the following command at a command prompt:
sudo yum install mariadb-server mariadb
Start and stop the database service
Use the following command to start MariaDB:
sudo systemctl start mariadb.service
Use the following command to stop MariaDB:
sudo systemctl stop mariadb.service
Launch at reboot
To ensure that the database server launches after a reboot, you must
enable the chkconfig utility. Use the following commands to do this.
Enable chkconfig on MariaDB
sudo systemctl enable mariadb.service
Start the mysql shell
There is more than one way to work with a MySQL server, but this article focuses on the most basic and compatible approach: themysql
shell.1. At the command prompt, run the following command to launch the
mysql
shell and enter it as the root user: /usr/bin/mysql -u root -p
2. When you’re prompted for a password, enter the one that you set at installation or, if you haven’t set one, press Enter to submit no password.
Source : Rackspace
Comments
Post a Comment