Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Upgrade version via mysql_upgrade #20

Closed
R-omk opened this issue Apr 21, 2016 · 1 comment
Closed

Upgrade version via mysql_upgrade #20

R-omk opened this issue Apr 21, 2016 · 1 comment
Labels
question Usability question, not directly related to an error with the image

Comments

@R-omk
Copy link

R-omk commented Apr 21, 2016

docker-library/mysql#130

In this example CMD is 'bash' and mysql_upgrade started manually

root@321568b77f23:/# mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Error: Failed while fetching Server version! Could be due to unauthorized access.
FATAL ERROR: Upgrade failed

How to run the mysql_upgrade ?

@netpoe
Copy link

netpoe commented Dec 5, 2016

I ran into the same problem, this worked for me:

docker exec -it container_name bash -c "mysql_upgrade -uroot -proot"

root must be your mysql username and password

@wglambert wglambert added the question Usability question, not directly related to an error with the image label Apr 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

3 participants