You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the setup script mysql.sh via npm run db:setup:mysql, the mysql and mysqladmin commands do not make use of the login config file created in the setup process. We saw the following output:
- Removing any existing northwind database (you may need to provide a password)
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'akshay'@'localhost' (using password: NO)'
- Removing any existing northwind_user user
ERROR 1045 (28000): Access denied for user 'akshay'@'localhost' (using password: NO)
- Creating northwind_user
ERROR 1045 (28000): Access denied for user 'akshay'@'localhost' (using password: NO)
- Creating northwind database
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'akshay'@'localhost' (using password: NO)'
- Granting all northwind database permissions to northwind_user
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- Setting up schema from ./sql/northwind.mysql.sql
ERROR 1045 (28000): Access denied for user 'akshay'@'localhost' (using password: NO)
- Importing data from ./sql/northwind_data.sql (this may take a while)
ERROR 1045 (28000): Access denied for user 'akshay'@'localhost' (using password: NO)
We resolved the issue by adding aliases in the mysql.sh file like so:
alias mysqladmin='mysqladmin --login-path=local'alias mysql='mysql --login-path=local'
I am unsure if this is relevant to all operating systems and all versions of mysql.
I intend to make a PR but would like to wait until I finish the course so that I can ensure that my PR includes fixes to all instances of this specific issue.
Thank you @mike-north, will switch to postgres if there's further trouble. We wanted to familiarise ourselves specifically with mysql because that's what we plan on using for an upcoming project.
Would you be open to accepting the PR I mentioned? My colleague who is following the course from Ubuntu 18.04 with mysql v5.x also faced the issue and setting the aliases helped him as well. I don't see any negative side effects of setting the aliases in conditions when everything works out of the box.
PS: Our entire team has greatly enjoyed and benefited from your courses on FEM. Thank you for being awesome!
Hello,
MacOS 10.13.6
mysql v8.0.12
brew
v10.6.0
When running the setup script mysql.sh via
npm run db:setup:mysql
, themysql
andmysqladmin
commands do not make use of the login config file created in the setup process. We saw the following output:We resolved the issue by adding aliases in the mysql.sh file like so:
I am unsure if this is relevant to all operating systems and all versions of mysql.
I intend to make a PR but would like to wait until I finish the course so that I can ensure that my PR includes fixes to all instances of this specific issue.
Akshay Barad
BitCraft
The text was updated successfully, but these errors were encountered: