답변 2개 / 댓글 6개
채택된 답변
+20 포인트
5년 전
답변에 대한 댓글 5개
5년 전
[root@jhp_test ~]# /usr/local/mysql/bin/mysql -u root -p mysql -S /var/lib/mysql/mysql.sock
Enter password : *******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7
Server version : 5.1.32 Source distribution
Type 'help' or '\h' for help. Type '\c' to clear the buffer.
mysql >
방화벽도 확인해보세요.
Enter password : *******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7
Server version : 5.1.32 Source distribution
Type 'help' or '\h' for help. Type '\c' to clear the buffer.
mysql >
방화벽도 확인해보세요.
imwkdrh
5년 전
[root@op-36 ~]# mysql -uroot -p mysql -S /usr/local/mysql/mysql.sock
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.30 Source distribution
Copyright (c) 2000, 2016, 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>
이렇게 나오며 방화벽은 다 꺼져있는 상태입니다 ㅠㅠ
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.30 Source distribution
Copyright (c) 2000, 2016, 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>
이렇게 나오며 방화벽은 다 꺼져있는 상태입니다 ㅠㅠ
imwkdrh
5년 전
해결했습니다.. php.ini에서 mysql.sock 경로 설정을 해주었었는데
php 설정파일 경로가 잘못되어 있어서 php.ini을 읽지않고 있어서 일어난 문제였습니다.
경로 설정 다시 해주고 php.ini 읽어서 정상 작동되었습니다
댓글 감사하였습니다.
php 설정파일 경로가 잘못되어 있어서 php.ini을 읽지않고 있어서 일어난 문제였습니다.
경로 설정 다시 해주고 php.ini 읽어서 정상 작동되었습니다
댓글 감사하였습니다.
DB 정보가 틀릴 때 발생하는 오류입니다.
다시 한번 제대로 적은 건지 확인해 보세요.
답변에 대한 댓글 1개
imwkdrh
5년 전
몇번이고 확인해봤습니다. DB정보는 제대로 적었습니다..
그리고 다른 db정보나 허위정보를 입력해도 똑같이 나옵니다.
그리고 다른 db정보나 허위정보를 입력해도 똑같이 나옵니다.
답변을 작성하려면 로그인이 필요합니다.
