Rechercher dans le manuel MySQL
32.4 Connecting
This section describes the various connection methods for connecting to the deployed MySQL server on the OCI Compute Instance.
Connecting with SSH
This section gives some detail on connecting from a UNIX-like platform to the OCI Compute. For more information on connecting with SSH, see Accessing an Oracle Linux Instance Using SSH and Connecting to Your Instance.
To connect to the Oracle Linux running on the Compute Instance with SSH, run the following command:
ssh opc@computeIP
where opc
is the compute user and
computeIP
is the IP address of your
Compute Instance.
To find the temporary root password created for the root user, run the following command:
sudo grep 'temporary password' /var/log/mysqld.log
To change your default password, log in to the server using the
generated, temporary password, using the following command:
mysql -uroot -p
. Then run the following:
To connect from your local MySQL client, you must first create on the MySQL server a user which allows remote login.
To connect to the MySQL Server from your local MySQL client, run the following command from your shell session:
mysql -uroot -p -hcomputeIP
where computeIP
is the IP address of
your Compute Instance.
To connect to the MySQL Server from your local MySQL Shell, run the following command to start your shell session:
mysqlsh \connect root@computeIP
where computeIP
is the IP address of
your Compute Instance.
For more information on MySQL Shell connections, see MySQL Shell Connections.
To connect to the MySQL Server from MySQL Workbench, see Connections in MySQL Workbench.
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-mysql-oci-marketplace-connecting.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.