question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Easy parallelization mysql password

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
toshihikoyanasecommented, May 14, 2021

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-urls

0reactions
nzw0301commented, May 22, 2021

let 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found