Go to https://mvnrepository.com/artifact/mysql/mysql-connector-java and choose the version we want in my case I will take version 5.1.47 this is the direct link to download http://central.maven.org/maven2/mysql/mysql-connector-java/5.1.47/mysql-connector-java-5.1.47.jar I also leave the following image so that you can see where you can download it. Then we save the driver in the directory easy to find.
Install MySQL Server To install the MySQL server, you must update your Linux packages system first, type: sudo apt update Then install the MySQL Server package: sudo apt-get install mysql-server MySQL prompt asking you to proceed install, then type: Y Set Password on Root User Please note that the MySQL root user is unsecured you need to provide a secure password for the root user once you deployed on production. To do this, run this command on your terminal: $ sudo mysql Next, we need to check which authentication method of each MySQL user, type command: mysql> SELECT user,authentication_string,plugin,host FROM mysql.user; You can see that the root user doesn’t have authentication_string using the auth_socket plugin. To configure the root account to authenticate with a password, run the following ALTER USER command: mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password' ; Please note, make sure...
How to Fix error for MySQL 5.7 with Ubuntu 18.04 : ERROR 1698 (28000): Access denied for user ‘root’@’localhost’ In Ubuntu systems running MySQL 5.7 (and later), the root user is authenticated by the auth_socket plugin by default. $ sudo mysql #No Username to be the provide mysql> USE mysql; mysql> SELECT User, Host, plugin FROM mysql.user; +------------------+-----------+-----------------------+ | User | Host | plugin | +------------------+-----------+-----------------------+ | root | localhost | auth_socket | | mysql.session | localhost | mysql_native_password | | mysql.sys | localhost | mysql_native_password | | debian-sys-maint | localhost | mysql_native_password | +------------------+-----------+----...
Comments
Post a Comment