Easy parallelization mysql password
See original GitHub issueI am trying to run the tutorial on easy parallelization:
https://optuna.readthedocs.io/en/stable/tutorial/10_key_features/004_distributed.html
Mysql is installed via brew on my mac.
To create the “example” database I run the command with -p
parameter:
mysql -u root -e "CREATE DATABASE IF NOT EXISTS example" -p
And then when I run:
optuna create-study --study-name "distributed-example" --storage "mysql://root@localhost/example"
I get:
(MySQLdb._exceptions.OperationalError) (1045, "Access denied for user 'root'@'localhost' (using password: NO)") (Background on this error at: http://sqlalche.me/e/14/e3q8)
Any idea how to overcome this with optuna CLI?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Parallelization using Mysql with the error of “"Can't connect to ...
Just sudo mysql is fine or mysql -u root -p and it works. And I also tried another example using pymysql to connect...
Read more >4. Easy Parallelization — Optuna 3.0.4 documentation
4. Easy Parallelization . It's straightforward to parallelize optuna.study.Study.optimize() . If you want to manually execute Optuna optimization:.
Read more >2.11.4 Changes in MySQL 8.0
The use of caching_sha2_password offers more secure password hashing than ... makes it easy to enable binary log writeset parallelization on the source...
Read more >Can MySQL parallelize UNION subqueries (or anything at all)?
According to MySQL docs, it is on the ToDo list that: Queries involving aggregate functions such as SUM() and COUNT() can easily be...
Read more >MYSQL parallel query performance issue - DBA Stack Exchange
Speculating, what seems like running in parallel in CPU (multiple threads), there could be only one drive holding the data.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @gkourogiorgas I guess the DB URL requires the password. You can place password between username and hostname as follows:
mysql://root:<password>@localhost/example
Fore more details, please refer to the following document: https://docs.sqlalchemy.org/en/14/core/engines.html#database-urlslet me close this issue since the original question is supposed to be answered. Please feel free to reopen this issue if you have a still problem.