Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This typo cause failure in importing data to MySQL #144

Open
Niemetz opened this issue Jul 22, 2023 · 1 comment
Open

This typo cause failure in importing data to MySQL #144

Niemetz opened this issue Jul 22, 2023 · 1 comment

Comments

@Niemetz
Copy link

Niemetz commented Jul 22, 2023

This command causes an issue:
mysql -h $DBEndpoint -u $DBUser -p$DBPassword $DBName < a4lWordPress.sql

because the "-p$DBPassword " should be "-p $DBPassword " (need to have a blank space between the -p option and $DBPassword)

@acantril
Copy link
Owner

Hi
This is wrong, the mySQL command line docs specifically say there can be NO space between

https://dev.mysql.com/doc/refman/8.0/en/mysql-command-options.html

The password of the MySQL account used for connecting to the server. The password value is optional. If not given, mysql prompts for one. If given, there must be no space between --password= or -p and the password following it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants