??linux???а??MySQL
???????????? ???????[ 2014/2/10 11:34:44 ] ????????linux?? MySQL
????1.???Linux?????????MySQL?????
????????????????а汾????????MySQL?????
????CentOS???е?YUM?а?????MySQL????????汾??MySQL5??rpm?????????????mysql-server
????yum list | grep mysql?????????????YUM????????MySQL??????????г?????
?????????????????????г??????????mysql.i686?????MySQL?????????mysql-server??MySQL??????????????£????MySQL???????????????????????????????????????????????
????yum install -y mysql-server mysql mysql-devel
???????????汾???????rpm -qi mysql-server
????service mysqld start????mysql???г???????????mysql??????????????mysql???г??????mysql?????mysqld
??????mysql??root??????г??????????????
????mysqladmin -u root password '????'
???????mysql??root?????????????????mysql -u root -p
????????mysql???????????????????????chkconfig mysql on
??????mysql???????????my.cnf????????????????etc???£?cd /etc ls my.cnf
??????mysql????????е??????cat my.cnf
????mysql???????????????/var/lib/mysql??????????????????????????????????л???????????????????????У????????????б????????????????????????????mysql????????е??????????datadir?????mysql????????????λ???????????
????mysql??????????????/var/log??????£??????????????????mysqld.log??????????????mysql??????????????????
????netstat -tupln ????Щ?????????Щ???
????2.???????????μ?MySQL?????
????1?????????rpm -ivh MySQL-client-5.6.11-2.el6.i686.rpm MySQL-server-5.6.11-2.el6.i686.rpm
??????????仰???????client???server????棬 ?????????????????server??????????server???????client?????
?????????? ???????????????
A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER !
You will find that password in '/root/.mysql_secret'.
You must change that password on your first connect??
no other statement but 'SET PASSWORD' will be accepted.
See the manual for the semantics of the 'password expired' flag.
Also?? the account for the anonymous user has been removed.
In addition?? you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test database.
This is strongly recommended for production servers.
See the manual for more instructions.
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
New default config file was created as /usr/my.cnf and
will be used by default by the server when you start it.
You may edit this file to change server settings
?????????????????MySQL?????????????????κ???????????????????SET PASSWORD????????????? '/root/.mysql_secret'????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11