728x90

# ./mysqldump -uroot -p test > /data/test.sql
Enter password:
mysqldump: Couldn't execute 'SHOW FIELDS FROM `info`': SELECT command denied to user ''@'%' for column 'info1' in table 'status' (1143)


# ./mysql -uroot -p

mysql> SHOW FIELDS FROM info;
ERROR 1143 (42000): SELECT command denied to user ''@'%' for column ' info1' in table 'status'

mysql> select * from test.info limit 5;
ERROR 1449 (HY000): The user specified as a definer ('test'@'%') does not exist

 

-- 계정, host 생성 
CREATE USER 'test'@'%' IDENTIFIED BY 'test';
GRANT ALL PRIVILEGES ON *.* to 'test'@'%';

FLUSH PRIVILEGES;

728x90

'MYSQL' 카테고리의 다른 글

Mysql Object 조회  (0) 2024.06.27
ERROR 1064 (42000)  (1) 2024.06.27
mysqldump: Error 1194  (0) 2024.06.24
mysql bin 로그 삭제 하기  (0) 2024.06.17
REPLICATION ERROR 1062  (0) 2024.02.21

+ Recent posts