In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Note: switch to MySQL installation path
one
[root@mysql1 mysql] # cd / usr/local/mysql/
1)。 Copy the configuration files required for MySQL startup
one
[root@mysql1 mysql-5.5.32] # / bin/cp support-files/my-large.cnf / etc/my.cnf
two。 Copy mysqld configuration script
one
two
[root@mysql1 mysql-5.5.32] # cp support-files/mysql.server / etc/init.d/mysqld
[root@mysql1 mysql-5.5.32] # chmod adepx / etc/init.d/mysqld
3)。 Initial MySQL database
/ mydata/data is the directory where the database files are stored
one
two
three
four
five
six
seven
eight
nine
ten
[root@mysql1 mysql] # mkdir / mydata/data-pv
Mkdir: created directory `/ mydata'
Mkdir: created directory `/ mydata/data'
[root@mysql1 mysql] # chown-R mysql.mysql / mydata/data/
[root@mysql1 mysql] # chown-R mysql.mysql / usr/local/mysql/
Scripts/mysql_install_db\
-- user=mysql\
-- basedir=/usr/local/mysql/\
-- datadir=/mydata/data/
4)。 Set the PATH environment variable
one
Echo "export PATH=$PATH:/usr/local/mysql/bin" > / etc/profile.d/mysql.sh & & source / etc/profile.d/mysql.sh
5)。 Set Boot self-boot
one
[root@mysql1 mysql] # echo "/ etc/init.d/mysqld start" > > / etc/rc.local
6)。 Turn off the firewall
one
[root@mysql1 mysql] # echo "/ etc/init.d/iptables stop" > > / etc/rc.local
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.