Get the App
SLTechnology News&Howtos  ›  Database  › 

Installation mysql tutorial handouts

Shulou Source: shulou.com Published: 2022-06-01 20:17:27 10月03日 Update

The following content mainly brings you installation mysql tutorial handouts, the knowledge mentioned here, slightly different from books, are professional and technical personnel in contact with users in the process, summed up, with a certain experience sharing value, hope to bring help to the majority of readers.

Delete previously installed files when reinstalling

rm -rf /data/mysql

·MySQL several commonly used installation packages: rpm, source code, binary-free compilation

· cd /usr/local/src

· wget http://mirrors.sohu.com/mysql/MySQL-5.6/mysql-5.6.35-linux-glibc2.5-x86_64.tar.gz

· tar zxvf mysql-5.6.35-linux-glibc2.5-x86_64.tar.gz

· mv mysql-5.6.35-linux-glibc2.5-x86_64 /usr/local/mysql

cd /usr/local/mysql

· useradd mysql

· mkdir /data/store mysql data

· ./ scripts/mysql_install_db --user=mysql --datadir=/data/mysql initialization

· cp support-files/my-default.cnf /etc/my.cnf

· cp support-files/mysql.server /etc/init.d/mysqld

· vi /etc/init.d/mysqld

Definition of basedir and datadir

basedir=/usr/local/mysql

datadir=/data/mysql

[root@lsx-02kelong mysql]# /etc/init.d/mysqld start

[root@localhost mysql]# chkconfig --add mysqld

[root@localhost mysql]# service mysqld start

[root@lsx-001 mysql]# netstat -lnpt

For the above on the installation of mysql tutorial handouts, if you still need to know more can continue to pay attention to our industry push new, if you need to get professional answers, you can contact the official website pre-sales after-sales, I hope this article can bring you a certain knowledge update.

Tags: Tutorials handouts majors knowledge differences below books binary people value content available in commonly used technology data files more source code users experience Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Linux Shulou Technology Docker Xiaomi