Redhat Linux Install mysql4.0.xx

xiaoxiao2021-03-06  41

1. Download mysql2: tar zxvf mysql4-0-20.tar.gzcd mysql4-0-20./configure --prefix = / usr / local / mysql --sysconfdir = / etc --LocalStatedir = / var / lib / mysql

3: Make

Make Install

4: Initialization / usr / local / mysql / bin / mysql_install_db Add a mysql user useradd -m -m -r -d / var / lib / mysql -s / bin / bash -c "mysql server" -u 27 MySQL

5: Write the shell script

Chown -r root / usr / local / mysqlchgrp -r mysql / usr / local / mysqlchown -r root / usr / local / mysql / binchgrp -r mysql / usr / local / mysql / binchgrp -r mysql / var / lib / mysqlchmod 777 / var / lib / mysqlchown -r root / var / lib / mysql / mysqlchgrp -r mysql / var / lib / mysql / mysqlchmod 777 / var / lib / mysql / mysqlchown -r root / var / lib / mysql / mysql / * chgrp -r mysql / var / lib / mysql / mysql / * chmod 777 / var / lib / mysql / mysql / * chmod 777 /usr/local/mysql/lib/mysql/libmysqlclient.a

CP Support-files / mysql.server /etc/rc.d/init.d/mysqld

Chkconfig --Add MySQLD

Save INSTALL_CONFIG.SH gives execution rights and executes

6: Setup set to automatically start

7: /etc/rc.d/init.d/mysqld start launches it

8: The initial password is air danger, hurry to change

mysqladmin -u root -p password mypasswd

9: CD / usr / local / mysql / bin / with mysql -u root -p then enter mypassword - Of course, you can change it after you can change it yourself, you can use Show Tables;

转载请注明原文地址:https://www.9cbs.com/read-54997.html

New Post(0)