ยัง Error เหมือนเดิมเลยครับ
++++++++++
[root@server3 ~]# useradd mysql
[root@server3 ~]# service mysql stop
mysql: unrecognized service
[root@server3 ~]# rm -fr /var/lib/mysql
[root@server3 ~]# rm -f /etc/init.d/mysql*
[root@server3 ~]# cp my2G-e.cnf /etc/my.cnf
[root@server3 ~]# chmod 744 /etc/my.cnf
[root@server3 ~]# rpm -ivh Percona-Server-shared-55-5.5.15-rel21.0.158.rhel5.x86_64.rpm --nodeps --force
warning: Percona-Server-shared-55-5.5.15-rel21.0.158.rhel5.x86_64.rpm: Header V4 DSA signature: NOKEY, key ID cd2efd2a
Preparing... ########################################### [100%]
1:Percona-Server-shared-5########################################### [100%]
[root@server3 ~]# rpm -ivh Percona-Server-client-55-5.5.15-rel21.0.158.rhel5.x86_64.rpm --nodeps --force
warning: Percona-Server-client-55-5.5.15-rel21.0.158.rhel5.x86_64.rpm: Header V4 DSA signature: NOKEY, key ID cd2efd2a
Preparing... ########################################### [100%]
1:Percona-Server-client-5########################################### [100%]
[root@server3 ~]# rpm -ivh Percona-Server-server-55-5.5.15-rel21.0.158.rhel5.x86_64.rpm --nodeps --force
warning: Percona-Server-server-55-5.5.15-rel21.0.158.rhel5.x86_64.rpm: Header V4 DSA signature: NOKEY, key ID cd2efd2a
Preparing... ########################################### [100%]
1:Percona-Server-server-5########################################### [100%]
110924 17:59:42 [Note] Flashcache bypass: disabled
110924 17:59:42 [Note] Flashcache setup error is : ioctl failed
110924 17:59:43 [Note] Flashcache bypass: disabled
110924 17:59:43 [Note] Flashcache setup error is : ioctl failed
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
Please report any problems with the /usr/bin/mysqlbug script!
Percona recommends that all production deployments be protected with a support
contract (
http://www.percona.com/mysql-suppport/) to ensure the highest uptime,
be eligible for hot fixes, and boost your team's productivity.
Percona Server is distributed with several useful UDF (User Defined Function) from Maatkit.
Run the following commands to create these functions:
mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"
See
http://code.google.com/p/maatkit/source/browse/trunk/udf for more details
หรือว่าผมลงผิดขั้นตอนครับผมลงตามนี้ครับ
++++++++++++++++++++++++++++++++
useradd mysql
service mysql stop
rm -fr /var/lib/mysql
rm -f /etc/init.d/mysql*
cp my2G-e.cnf /etc/my.cnf
chmod 744 /etc/my.cnf
rpm -ivh Percona-Server-shared-55-5.5.15-rel21.0.158.rhel5.x86_64.rpm --nodeps --force
rpm -ivh Percona-Server-client-55-5.5.15-rel21.0.158.rhel5.x86_64.rpm --nodeps --force
rpm -ivh Percona-Server-server-55-5.5.15-rel21.0.158.rhel5.x86_64.rpm --nodeps --force
rpm -ivh xtrabackup-1.6.2-274.rhel5.x86_64.rpm --nodeps --force
service mysql stop
service mysql start
mysql -e "drop database if exists hos"
mysql -e "create database hosxp_pcu"
mysql -e "grant all privileges on hos.* to sa@'%' identified by 'sa'"
mysql -e "grant all privileges on *.* to sa@'%' identified by 'sa' with grant option"
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
mysql
mysql>grant all on *.* to sa@'%' identified by 'sa' with grant option ;
mysql>grant super on *.* to sa@'%' identified by 'sa' ;
mysql>flush privileges ;
exit
echo 'ulimit -n 30000' >> /etc/rc.conf
+++++++++++++++++++++++++++++++++