Quantcast
Channel: MySQL Forums - MySQL Workbench
Viewing all articles
Browse latest Browse all 3737

Connect to MySQL 8 from Workbench (no replies)

$
0
0
mysql Ver 8.0.19 for Linux on x86_64 (MySQL Community Server - GPL)
MySQL Workbench CE (GPL) 6.3.8 CE build 1228


Attempting to connect to MySQL within Workbench as root (as I connect traditionally) I get 'Access denied for user 'root'@'localhost''.

I've read that MySQL 5.7+ no longer allows access as root, so you need to create another account with the same privileges as such within mysql-server:


mysql> create user 'admin'@'localhost' identified by 'password';
mysql> grant all privileges on *.* to 'admin'@'localhost';
mysql> flush privileges;


This completed successfully, but again attempting to connect from within workbench I still get an error:

Failed to Connect to MySQL at localhost:3306 with user admin
Access denied for user 'admin'@'localhost' (using password: NO)

Login details below. Any guidance on how to remedy is much appreciated.

hostname: localhost
port: 3306
username: admin
password: (none)

For reference, my mysql installation sits on an external HD, though I access it without issue using the standard 'sudo mysql -u root -p' call on the command line.

Viewing all articles
Browse latest Browse all 3737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>