BMS-HOSxP Community
HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: nan_it ที่ เมษายน 22, 2011, 10:01:47 AM
-
ผมลองติดตั้ง mysql 5.5.11 ลงบน centos 5.6 ไม่ผ่านนครับ เฉพาะ package MySQL-server ครับ ส่วน client กับ share ติดตั้งได้ครับ ฟ้อง error ว่า
/usr/sbin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.
You can try to start the mysqld daemon with:
shell> /usr/sbin/mysqld --skip-grant &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/bin/mysqlbug script!
แนะนำหน่อยครับ
-
;D ;D ;D ลงตัวไหนบ้างแล้วครับท่าน
-
[root@hosxp tmp]# rpm -ivh MySQL-client-5.5.11-1.linux2.6.x86_64.rpm --nodeps --force
Preparing... ########################################### [100%]
1:MySQL-client ########################################### [100%]
[root@hosxp tmp]# rpm -ivh MySQL-shared-5.5.11-1.linux2.6.x86_64.rpm --nodeps --force
Preparing... ########################################### [100%]
1:MySQL-shared ########################################### [100%]
ลงสองตัวนี่ผ่านครับ os เป็น centos 5.6 64 bit ครับ
-
ไฟล์ที่ดาวน์โหลดมาเสียหรือป่าว
ลองดาวน์โหลดไฟล์ MySQL-server มาใหม่หรือยังครับ
หรือไม่ก็ติดตั้ง libaio.so ก่อน
ลองดูตามนี้นะครับ
http://onaxer.com/blog/blog/2011/03/08/install-mysql-5-5-on-ubuntu/
http://lse.sourceforge.net/io/aio.html
http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/libaio.so.1%28%29%2864bit%29
http://rpm.pbone.net/index.php3/stat/4/idpl/15702619/dir/centos_5/com/libaio-0.3.106-5.x86_64.rpm.html
;D
-
;D ;D ;D ไม่ใช้ package แบบ rhel5(Red Hat Enterprise linux5) เหรอครับ
[root@hosxp tmp]# rpm -ivh MySQL-client-5.5.11-1.linux2.6.x86_64.rpm --nodeps --force
Preparing... ########################################### [100%]
1:MySQL-client ########################################### [100%]
[root@hosxp tmp]# rpm -ivh MySQL-shared-5.5.11-1.linux2.6.x86_64.rpm --nodeps --force
Preparing... ########################################### [100%]
1:MySQL-shared ########################################### [100%]
ลงสองตัวนี่ผ่านครับ os เป็น centos 5.6 64 bit ครับ
-
MySQL-client-5.5.11-1.rhel5.x86_64.rpm
MySQL-server-5.5.11-1.rhel5.x86_64.rpm
MySQL-shared-5.5.11-1.rhel5.x86_64.rpm
3ไฟล์ครับ
-การติดตั้งเข้าไปในที่เก็บตัวติดตั้ง
#rpm -ivh MySQL-* --nodeps --force
-
MySQL-client-5.5.11-1.rhel5.x86_64.rpm
MySQL-server-5.5.11-1.rhel5.x86_64.rpm
MySQL-shared-5.5.11-1.rhel5.x86_64.rpm
3ไฟล์ครับ
-การติดตั้งเข้าไปในที่เก็บตัวติดตั้ง
#rpm -ivh MySQL-* --nodeps --force
;D ;D ;D ต้อง pagkage เก่าออกไหมครับ
-
ของผมก็ได้นะครับ
1.ติดตั้ง centos 5.6/ oracle 5.6 >>>>>> เลือกแบบ custom เอาเฉพาะ base หรือ ไม่เอาอะไรเลย
2.ติดตั้ง perl-DBI ก่อน
3 ติดตั้ง MySQL เลย
ตามนี้ครับ
[root@hos setup]# rpm -ivh perl-DBI-1.52-2.el5.i386.rpm
warning: perl-DBI-1.52-2.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ########################################### [100%]
1:perl-DBI ########################################### [100%]
[root@hos setup]# rpm -ivh MySQL-* --nodeps --force
Preparing... ########################################### [100%]
1:MySQL-shared ########################################### [ 33%]
2:MySQL-client ########################################### [ 67%]
3:MySQL-server ########################################### [100%]
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 hos 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!
[root@hos setup]#
-
ถ้ามี server ติดตั้งอยู่ก่อนแล้ว ต้องเอาออกก่อนครับ
rpm -ev ตามด้วย Mysql-server ที่ติดตั้งไป
-
ถ้ามี server ติดตั้งอยู่ก่อนแล้ว ต้องเอาออกก่อนครับ
rpm -ev ตามด้วย Mysql-server ที่ติดตั้งไป
เอาออกก่อนครับ
อันนี้ลงเสร็จแล้ว
[root@hos ~]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.5.11 MySQL Community Server (GPL)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| hos |
| mysql |
| performance_schema |
| test |
+--------------------+
5 rows in set (0.03 sec)
mysql>
-
MySQL-client-5.5.11-1.rhel5.x86_64.rpm
MySQL-server-5.5.11-1.rhel5.x86_64.rpm
MySQL-shared-5.5.11-1.rhel5.x86_64.rpm
3ไฟล์ครับ
-การติดตั้งเข้าไปในที่เก็บตัวติดตั้ง
#rpm -ivh MySQL-* --nodeps --force
;D ;D ;D ต้อง pagkage เก่าออกไหมครับ
pagkage เก่าออก
ถ้ามี server ติดตั้งอยู่ก่อนแล้ว ต้องเอาออกก่อนครับ
rpm -ev ตามด้วย Mysql-server ที่ติดตั้งไป
show
1.ติดตั้ง Oracle 6
2.ติดตั้ง Percona-MySQL เลย
http://www.percona.com/downloads/Percona-Server-5.5/Percona-Server-5.5.10-rc20.1/RPM/rhel6/x86_64/Percona-Server-client-55-5.5.10-rc20.1.98.rhel6.x86_64.rpm
http://www.percona.com/downloads/Percona-Server-5.5/Percona-Server-5.5.10-rc20.1/RPM/rhel6/x86_64/Percona-Server-shared-55-5.5.10-rc20.1.98.rhel6.x86_64.rpm
http://www.percona.com/downloads/Percona-Server-5.5/Percona-Server-5.5.10-rc20.1/RPM/rhel6/x86_64/Percona-Server-server-55-5.5.10-rc20.1.98.rhel6.x86_64.rpm
-
ขอบคุณ อ.ทุกท่านมากครับ ;D ;D
-
มีทางลัดครับ ;D
Download ตัวนี้
http://hosxp.net/bms/BMSxTraBackupGUI-3.54.4.27.zip
เปลี่ยนชื่อ Host เป็น BMS-Restore
กำหนดค่า IP Address และ Root password แล้วกดปุ่ม Install MySQL ได้เลยครับ
-
มีทางลัดครับ ;D
Download ตัวนี้
http://hosxp.net/bms/BMSxTraBackupGUI-3.54.4.27.zip
เปลี่ยนชื่อ Host เป็น BMS-Restore
กำหนดค่า IP Address และ Root password แล้วกดปุ่ม Install MySQL ได้เลยครับ
... ;D ;D ;D ...
-
อีกนิดครับ อ. ฟ้อง error
[root@hosxp tmp]# rpm -ivh MySQL-server-5.5.11-1.rhel5.x86_64.rpm --nodeps --force
Preparing... ########################################### [100%]
ls: /var/lib/mysql/*.err: No such file or directory
ls: /var/lib/mysql/*.err: No such file or directory
1:MySQL-server ########################################### [100%]
มีทางลัดครับ ;D
Download ตัวนี้
http://hosxp.net/bms/BMSxTraBackupGUI-3.54.4.27.zip
เปลี่ยนชื่อ Host เป็น BMS-Restore
กำหนดค่า IP Address และ Root password แล้วกดปุ่ม Install MySQL ได้เลยครับ
-
;D ;D ;D rpm -ivh packagename.rpm --nodeps --force เป็นคำสั่งติดตั้งแบบทับ package เดิมที่มีการทำงานอยู่
ในกรณีฟ้องแบบนี้
ls: /var/lib/mysql/*.err: No such file or directory
ls: /var/lib/mysql/*.err: No such file or directory
แสดงว่าท่านสั่งถอนการติดตั้ง package mysql ตัวเดิมออกไปแล้วด้วยคำสั่ง rpm -e น่ะครับสามารถสั่งติดตั้งใหม่เพียวๆโดยไม่ต้องมี --nodeps --force ลงท้าย
เช่น rpm -ivh MySQL-server-5.5.11-1.rhel5.x86_64.rpm
แถมละกันถ้าท่านไม่ทราบว่าเครื่องของท่านมี package ที่ท่านต้องการจะลงใหม่ค้างอยู่ในระบบหรือไม่สามารถสั่งด้วยคำสั่ง
rpm -qa
เช่น rpm -qa|grep mysql
อีกนิดครับ อ. ฟ้อง error
[root@hosxp tmp]# rpm -ivh MySQL-server-5.5.11-1.rhel5.x86_64.rpm --nodeps --force
Preparing... ########################################### [100%]
ls: /var/lib/mysql/*.err: No such file or directory
ls: /var/lib/mysql/*.err: No such file or directory
1:MySQL-server ########################################### [100%]
มีทางลัดครับ ;D
Download ตัวนี้
http://hosxp.net/bms/BMSxTraBackupGUI-3.54.4.27.zip
เปลี่ยนชื่อ Host เป็น BMS-Restore
กำหนดค่า IP Address และ Root password แล้วกดปุ่ม Install MySQL ได้เลยครับ
-
มีทางลัดครับ ;D
Download ตัวนี้
http://hosxp.net/bms/BMSxTraBackupGUI-3.54.4.27.zip
เปลี่ยนชื่อ Host เป็น BMS-Restore
กำหนดค่า IP Address และ Root password แล้วกดปุ่ม Install MySQL ได้เลยครับ
กด install mysql แล้วค่า config mysql เปลี่ยนครับหากลง mysql ไปก่อนแล้ว เหมาะสำหรับ slav ที่ยังไม่ได้ลง mysql ครับ
-
[root@hosxp tmp]# rpm -ivh MySQL-client-5.5.11-1.linux2.6.x86_64.rpm --nodeps --force
Preparing... ########################################### [100%]
1:MySQL-client ########################################### [100%]
[root@hosxp tmp]# rpm -ivh MySQL-shared-5.5.11-1.linux2.6.x86_64.rpm --nodeps --force
Preparing... ########################################### [100%]
1:MySQL-shared ########################################### [100%]
ลงสองตัวนี่ผ่านครับ os เป็น centos 5.6 64 bit ครับ
linux2.6.x86_64 เป็น OEL 6.0 OR RHEL 6.0 64 bit
-
ยังติดตั้งไม่ได้ครับทำตามที่แนะนำหมดแล้ว ผมเลยลองลง mysql ผ่านแผ่น Centos ก็ไม่ผ่านเหมือนกันครับ
ฟ้องว่า
[root@hosxp ~]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@hosxp ~]#
-
ขอ link download Oracle 6 หน่อยครับ
-
http://edelivery.oracle.com/linux
-
ยังติดตั้งไม่ได้ครับทำตามที่แนะนำหมดแล้ว ผมเลยลองลง mysql ผ่านแผ่น Centos ก็ไม่ผ่านเหมือนกันครับ
ฟ้องว่า
[root@hosxp ~]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@hosxp ~]#
MSN : Tepprisan_1921@hotmail.com , Tepprisan19012521@gmail.com
-
ยังติดตั้งไม่ได้ครับทำตามที่แนะนำหมดแล้ว ผมเลยลองลง mysql ผ่านแผ่น Centos ก็ไม่ผ่านเหมือนกันครับ
ฟ้องว่า
[root@hosxp ~]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@hosxp ~]#
... เมื่อคืนวันศุกร์ ที่ บาเจาะ ก็ติดตั้งได้ไม่มีปัญหานะครับ
CentOS 5.6 64bit + MySQL 5.5.11 64bit ... :D ...
-
ยังติดตั้งไม่ได้ครับทำตามที่แนะนำหมดแล้ว ผมเลยลองลง mysql ผ่านแผ่น Centos ก็ไม่ผ่านเหมือนกันครับ
ฟ้องว่า
[root@hosxp ~]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@hosxp ~]#
... เมื่อคืนวันศุกร์ ที่ บาเจาะ ก็ติดตั้งได้ไม่มีปัญหานะครับ
CentOS 5.6 64bit + MySQL 5.5.11 64bit ... :D ...
Oracle Enterprise Linux 6.0+Percona-5.5.11-20.2
จะลง remote ไว้ก็ดี
-
;D ;D ;D ติดตั้งและสตาร์ทได้ยังครับท่าน ลองเปลี่ยนตำแหน่งใน my.cnf ลองดูครับ
ตรง [client]
socket = /var/lib/mysql/mysql.sock เปลี่ยนเป็น socket = /tmp/mysql.sock
ตรง [mysqld]
socket = /var/lib/mysql/mysql.sock เปลี่ยนเป็น socket = /tmp/mysql.sock
เปลี่ยนแล้วลองสั่ง service mysql restart ครับ
ยังติดตั้งไม่ได้ครับทำตามที่แนะนำหมดแล้ว ผมเลยลองลง mysql ผ่านแผ่น Centos ก็ไม่ผ่านเหมือนกันครับ
ฟ้องว่า
[root@hosxp ~]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@hosxp ~]#
-
ผมลองแล้ว ลงได้ แต่ start MySQL ไม่ผ่าน...........รบกวนท่านผู้เชี่ยวชาญด้วยครับ..........
-
เกี่ยวกับ my.cnf ต้องเปิดดูว่ามัน error อะไร ดูได้ที่ /var/lib/mysql ประมาณนั้น
-
default-storage-engine = INNODB >>>ลบออก
-
max_allowed_package ให้ใส่แค่ 1 G เท่านั้น