질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

./mysqladmin 도와주세요~~~

작성자 정보

  • 김태성 작성
  • 작성일

컨텐츠 정보

본문

[root@localhost bin]# ./mysql_install_db
Installing all prepared tables
Fill help tables

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/local/mysql/bin/mysqladmin -u root password 'new-password'
/usr/local/mysql/bin/mysqladmin -u root -h localhost.localdomain password 'new-p
assword'
See the manual for more instructions.

NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/local/mysql/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

You can start the MySQL daemon with:
cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /usr/local/mysql/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
[root@localhost bin]# ps -ef |grep mysqld
root 2503 2356 0 12:03 pts/1 00:00:00 grep mysqld
[root@localhost bin]# /usr/local/mysql/bin/mysqld_safe &
[1] 2507
[root@localhost bin]# Starting mysqld daemon with databases from /usr/local/mysql/data

[root@localhost bin]# ps -ef |grep mysqld
root 2507 2356 0 12:03 pts/1 00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe
mysql 2522 2507 2 12:03 pts/1 00:00:00 /usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql --pid-file=/usr/local/mysql/data/localhost.localdomain.pid --skip-locking
root 2533 2356 0 12:03 pts/1 00:00:00 grep mysqld
[root@localhost bin]# ./mysqladmin -u root password 88888888

./mysqladmin: error while loading shared libraries: /usr/local/mysql/lib/mysql/libmysqlclient.so.15: cannot restore segment prot after reloc: Permission denied

책대로 따라했는데 요기서 위와같이 오류가 납니다. 좀 도와주십시요... 암만찾아봐도 모르겠어서 이렇게 질문드립니다.

소유권 설정 chown -R mysql:mysql /usr/local/mysql/data 이렇게 해줬구요~~

책보고 따라하는데 완전 한개도 책대로 되는게 없네요... 전부 인터넷 뒤져가며 겨우 여기까징 했는데 여기서는 인터넷 뒤져봐

도 답이 안나와서 이렇게 질문드립니다. root password 설정하는 부분인거 같은데 위에서 보시는대로 ./mysqladmin -u

root password 88888888 이렇게 하면 permission denied가 나와버리네요... 찾아 봤더니 libmysqlclient.so.15가 없

길래 요놈도 rpm으로 찾아서 설치 했는데 그대로입니다. 해결방법 아시는분 좀 답변 부탁드립니다.

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,074 명
  • 현재 강좌수 :  35,995 개
  • 현재 접속자 :  379 명