After installing MySQL, enter mysql -u root -p in the terminal and press Enter. After entering the password, it prompts access denied......ues password YES/NO error The reason is that the username or password is incorrect! View and modify mysql username and password first step: At this time, you need to enter the /etc/mysql directory, then Now you can enter mysql Step 2: Modify root password Log in to the MySQL client according to the previous step mysql> use mysql; Database changed mysql> update user set password=password('new password') where user='root'; Query OK, 4 rows affected (0.00 sec) Rows matched: 4 Changed: 4 Warnings: 0 mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql> quit Step 3: Log in with the newly changed root and password to view. Install phpmyadmin 1. Open the terminal, enter 2. Then, after the installation is complete, check the Apache server directory (which has been changed from /var/www/html to /media/home/ivalley) and find that there is no such file or folder as phpmyadmin. 3. Here is the key point. When the system installs the software, it is installed in /usr/share/ by default, so your phpmyadmin can be found in /usr/share 4. Therefore, we must create a soft link to 5. Next, open the browser, enter http://localhost/phpmyadmin, enter your account name and password, and you can log in smoothly and use the MySQL database happily. Summarize The above is what I introduced to you about how to view and modify the login name and password of MySQL on Ubuntu and install phpmyadmin. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time! You may also be interested in:
|
<<: Detailed explanation of the abbreviation of state in react
>>: How to install Linux flash
Written at the beginning I remember seeing a shar...
Table of contents 1. The significance of users an...
This article records the installation and configu...
Introduction to Positioning in CSS position attri...
Problems: After adding the -v parameter to docker...
Effect picture (if you want a triangle, please cl...
Author: Ding Yi Source: https://chengxuzhixin.com...
Table of contents Preface System environment Curr...
The MySQL version number is 5.7.28. Table A has 3...
Build a simulation environment: Operating system:...
Table of contents Initialize the project Writing ...
This article shares the specific code for JavaScr...
The operating system for the following content is...
In daily work, we sometimes run slow queries to r...
Table of contents What is the Picker component Pr...