> > [root@stockchat bin]# pwd
> > /usr/local/mysql/bin
> > [root@stockchat bin]# ./mysql -u root -p password db; <--이렇게 하면
> > 아래와 같이 에러가 떨어지네요.
> > ./mysql Ver 9.36 Distrib 3.22.27, for pc-linux-gnu (i686)
>
> > 근데..접근이 안되니까...
> > 아시는 분 계시면...답변좀...
>
> ./mysql -u root --password='password' -e 'SQL syntax' db
> 이렇게 실행해 보시기 바랍니다.
아래와 같이 해두 안되네여...
[www@stockchat bin]$ ./mysql -u root --password='password' db;
ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
root에서는 mysql로 들어가거 든요..
[root@stockchat bin]# ./mysql stock
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 \.
Your MySQL connection id is 476869 to server version: 3.22.27
Type 'help' for help.
mysql>
근데 왜 스크립트에서는 access denied가 되는 거지요?
|