<![CDATA[Latest posts for the topic "Lỗi Cài Mysql trên Centos"]]> /hvaonline/posts/list/24.html JForum - http://www.jforum.net Lỗi Cài Mysql trên Centos /hvaonline/posts/list/44783.html#276072 /hvaonline/posts/list/44783.html#276072 GMT Lỗi Cài Mysql trên Centos /hvaonline/posts/list/44783.html#276075 /hvaonline/posts/list/44783.html#276075 GMT Lỗi Cài Mysql trên Centos

quanta wrote:
rpm -qa | grep mysql? 
em chạy lệnh đó nó ko thông báo gì hết [root@localhost ~]# rpm -qa | grep mysql [root@localhost ~]# ]]>
/hvaonline/posts/list/44783.html#276076 /hvaonline/posts/list/44783.html#276076 GMT
Lỗi Cài Mysql trên Centos

tichuot07 wrote:
em chạy lệnh đó nó ko thông báo gì hết [root@localhost ~]# rpm -qa | grep mysql [root@localhost ~]#  
Nghĩa là bạn cài chưa được. Miêu tả lại chi tiết các bước bạn đã làm và gửi kết quả liên quan lên nhé.]]>
/hvaonline/posts/list/44783.html#276080 /hvaonline/posts/list/44783.html#276080 GMT
Lỗi Cài Mysql trên Centos

quanta wrote:

tichuot07 wrote:
em chạy lệnh đó nó ko thông báo gì hết [root@localhost ~]# rpm -qa | grep mysql [root@localhost ~]#  
Nghĩa là bạn cài chưa được. Miêu tả lại chi tiết các bước bạn đã làm và gửi kết quả liên quan lên nhé. 
đây là các bước emlam cd /home tar xzvf mysql-5.0.67.tar.gz cd /home/mysql-5.0.67 ./configure --prefix=/usr/local/mysql5.0.67 --with-charset=utf8 --with-extra-charsets=all --enable-thread-safe-client make make install cp /usr/local/mysql5.0.67/share/mysql/my-small.cnf /etc/my.cnf yes /usr/local/mysql5.0.67/bin/mysql_install_db /usr/local/mysql5.0.67/bin/mysqld_safe --user=root & mysql -u root -p loi khúc này use mysql; ]]>
/hvaonline/posts/list/44783.html#276085 /hvaonline/posts/list/44783.html#276085 GMT
Lỗi Cài Mysql trên Centos /hvaonline/posts/list/44783.html#276087 /hvaonline/posts/list/44783.html#276087 GMT Lỗi Cài Mysql trên Centos

quanta wrote:
Cho mình xem kết quả khi chạy `tree -L 2 /usr/local/mysql5.0.67` nhé? 
[root@localhost ~]# tree -L 2 /usr/local/mysql-5.0.96 /usr/local/mysql-5.0.96 |-- bin | |-- comp_err | |-- innochecksum | |-- msql2mysql | |-- my_print_defaults | |-- myisam_ftdump | |-- myisamchk | |-- myisamlog | |-- myisampack | |-- mysql | |-- mysql_client_test | |-- mysql_config | |-- mysql_convert_table_format | |-- mysql_explain_log | |-- mysql_find_rows | |-- mysql_fix_extensions | |-- mysql_fix_privilege_tables | |-- mysql_install_db | |-- mysql_secure_installation | |-- mysql_setpermission | |-- mysql_tableinfo | |-- mysql_tzinfo_to_sql | |-- mysql_upgrade | |-- mysql_upgrade_shell | |-- mysql_waitpid | |-- mysql_zap | |-- mysqlaccess | |-- mysqladmin | |-- mysqlbinlog | |-- mysqlbug | |-- mysqlcheck | |-- mysqld_multi | |-- mysqld_safe | |-- mysqldump | |-- mysqldumpslow | |-- mysqlhotcopy | |-- mysqlimport | |-- mysqlshow | |-- mysqltest | |-- mysqltestmanager | |-- mysqltestmanager-pwgen | |-- mysqltestmanagerc | |-- perror | |-- replace | |-- resolve_stack_dump | `-- resolveip |-- include | `-- mysql |-- lib | `-- mysql |-- libexec | |-- mysqld | `-- mysqlmanager |-- mysql-test | |-- README | |-- collections | |-- include | |-- install_test_db | |-- lib | |-- mtr | |-- mysql-stress-test.pl | |-- mysql-test-run | |-- mysql-test-run-shell | |-- mysql-test-run.pl | |-- r | |-- std_data | |-- suite | `-- t |-- share | |-- info | |-- man | `-- mysql |-- sql-bench | |-- Comments | |-- Data | |-- README | |-- bench-count-distinct | |-- bench-init.pl | |-- compare-results | |-- copy-db | |-- crash-me | |-- graph-compare-results | |-- innotest1 | |-- innotest1a | |-- innotest1b | |-- innotest2 | |-- innotest2a | |-- innotest2b | |-- limits | |-- run-all-tests | |-- server-cfg | |-- test-ATIS | |-- test-alter-table | |-- test-big-tables | |-- test-connect | |-- test-create | |-- test-insert | |-- test-select | |-- test-transactions | `-- test-wisconsin `-- var |-- ib_logfile0 |-- ib_logfile1 |-- ibdata1 |-- localhost.localdomain.err |-- localhost.localdomain.pid |-- mysql |-- test |-- tlbbdb `-- tlbbdb_stat 27 directories, 83 files [root@localhost ~]# ]]>
/hvaonline/posts/list/44783.html#276115 /hvaonline/posts/list/44783.html#276115 GMT
Lỗi Cài Mysql trên Centos /hvaonline/posts/list/44783.html#276117 /hvaonline/posts/list/44783.html#276117 GMT Lỗi Cài Mysql trên Centos

quanta wrote:
OK. Giờ bạn chạy `/usr/local/mysql-5.0.96/bin/mysql -u root -p` thì sẽ không bị "command not found" nữa. Các thứ cần tìm hiểu là: - `--prefix` khi ./configure là để làm gì? - $PATH variable - Làm sao để chỉ gõ `mysql -u root -p` không thôi, mà vẫn không bị "command not found". PS: sao bạn không cài qua `yum` cho tiện? 
em cài = lệnh yum install mysql mysql-server mysql-devel mà emko biết cài mysql nó nằm trong thu mực nào hết em vào home ko thấy thu mục mysql]]>
/hvaonline/posts/list/44783.html#276135 /hvaonline/posts/list/44783.html#276135 GMT
Lỗi Cài Mysql trên Centos

tichuot07 wrote:
em cài = lệnh yum install mysql mysql-server mysql-devel mà emko biết cài mysql nó nằm trong thu mực nào hết em vào home ko thấy thu mục mysql 
Bạn gõ `rpm -ql mysql` rồi enter thì sẽ biết nó được cài vào đâu.]]>
/hvaonline/posts/list/44783.html#276137 /hvaonline/posts/list/44783.html#276137 GMT
Lỗi Cài Mysql trên Centos

quanta wrote:

tichuot07 wrote:
em cài = lệnh yum install mysql mysql-server mysql-devel mà emko biết cài mysql nó nằm trong thu mực nào hết em vào home ko thấy thu mục mysql 
Bạn gõ `rpm -ql mysql` rồi enter thì sẽ biết nó được cài vào đâu. 
em dùng lệnh để gở mysql rà cài lại [root@localhost ~]# rpm -qa | grep mysql mysql-5.0.95-5.el5_9 mysql-server-5.0.95-5.el5_9 mysql-devel-5.0.95-5.el5_9 [root@localhost ~]# rpm -e mysql-5.0.95-5.el5_9 error: Failed dependencies: libmysqlclient.so.15 is needed by (installed) mysql-devel-5.0.95-5.el5_9.i386 nó báo lỗi error: Failed dependencies: em gở hoài ko được ]]>
/hvaonline/posts/list/44783.html#276140 /hvaonline/posts/list/44783.html#276140 GMT
Lỗi Cài Mysql trên Centos

tichuot07 wrote:
em dùng lệnh để gở mysql rà cài lại [root@localhost ~]# rpm -qa | grep mysql mysql-5.0.95-5.el5_9 mysql-server-5.0.95-5.el5_9 mysql-devel-5.0.95-5.el5_9 [root@localhost ~]# rpm -e mysql-5.0.95-5.el5_9 error: Failed dependencies: libmysqlclient.so.15 is needed by (installed) mysql-devel-5.0.95-5.el5_9.i386 nó báo lỗi error: Failed dependencies: em gở hoài ko được  
Nghĩa là phải remove `mysql-devel` trước. Hoặc có thể dùng `yum remove mysql`.]]>
/hvaonline/posts/list/44783.html#276144 /hvaonline/posts/list/44783.html#276144 GMT