How to install and configure MySQL in CentOS Linux
Pre-installation required: vmwarevm, CentOS image [Note: in Linux, CentOS MySQL is not downloaded from the official website. You only need to configure it]
Perform the following operations:
// How to install MySQL on CentOS
// MySQL
// 1. Check whether the CD/DVD is connected in the Virtual Machine Settings
// 2. mount the disc command: mount/dev/cdrom/media
// 3. Successfully hang it to the yum. repos. d command cd/etc/yum. repos. d/
[Note: Use yum to install and configure yum. If you want to learn more about yum, du Niang]
// Cd/etc/yum. repos. d/enter this path and configure the local yum Source
// Readers should note the explanation here
// Cd/etc/yum. repos. d/
// Press LL to view the following four files
// Several repo files are displayed.
// The CentOS-Base.repo is the configuration file for the yum network source
// The CentOS-Media.repo is the configuration file of the yum local source
// 3. Modify CentOS-Media.repo
// Modify the 2nd paths to/media (that is, the disc mount point) in baseurl)
// Change enabled = 0 to 1
// 4. Disable the default yum network source
// Rename the yum network source configuration file to the CentOS-Base.repo.bak, otherwise it will first find the appropriate package in the network source, renamed and directly read from the local source.
The modify command is: vim CentOS-Media.repo CentOS-Media.repo.bak
Generally, files ending with a bak are disabled or system files.
This is a necessary operation in the early stage.
Later, you only need to execute several yum commands.
// 5. Run the yum command to install the software package
// Yum-y install mysql
// Yum-y install mysql-server
// Yum-y install mysql-devel
// Yum-y install mysql-lib
Wait until the words "complete" appear!
[Note: It is necessary to initialize the password after installing MySQL, that is, to change the password]
/3. Enter the MySQL directory path cd/var/lib/mysql
// 4. Change the MySQL password/usr/bin/mysqladmin-u root password ('newpassword') for the first time ');
Now, MySQL is over. Continue to learn react tomorrow.
Welcome to chat with readers who are caught in react!
Looking for a small Editor to talk about,Shijiazhuang ReactNative exchange group 526955818, please join this group for discussion
Xiaobian just opened a blog:Http://www.cnblogs.com/gdsblog/welcome!
I just started writing technical articles. The logic is not clear enough. Please forgive me!