You are on page 1of 3

PLAGIARISM SCAN REPORT

Date 2022-08-12

64%
36%

Words 988
Plagiarised Unique

Characters 7743

Content Checked For Plagiarism

MySQL is an open-source database management system, commonly installed as part of the popular LAMP (Linux,
Apache, MySQL, PHP/Python/Perl) stack.
It implements the relational model and uses Structured Query Language (better known as SQL) to manage its data (install
mysql). This tutorial will go over how to install MySQL version 8.0 on an Ubuntu 20.04 server. By you will have a working
relational database that you can use to build your next website or application.
install mysql on Ubuntu 20.04 by utilizing the APT package repository.
The version of MySQL that is currently accessible in the standard Ubuntu repository is version 8.0.27. If you haven’t
done so recently, update your server’s package index before installing it: Then install mysql server package: Ensure that the
server is running using the systemctl start command: These instructions will install and launch MySQL, but they won’t ask
you to configure it or set a password. We will handle this next since it makes your MySQL installation unsafe. After install
mysql If you got an error when run mysql_secure_installation you following step below: First, open up the MySQL prompt:
Then run the following ALTER USER command to
change the root user’s authentication method to one that uses a password. The following example changes the
authentication method to mysql_native_password: Leave the MySQL prompt after making this modification: Following that,
you can run the mysql_secure_installation script without issue.
Once the security script completes, you can then reopen MySQL and change the root user’s authentication method
back to the default, auth_socket.
To authenticate as the root MySQL user using a password, run this command: Use this command to return to using the
default authentication method after that: This will mean
that you can once again connect to MySQL as your root user using the sudo mysql command. Run the security script
with sudo: You may modify the security settings for your MySQL installation by following this via a series of prompts.
The first step will ask you if you want to set up the Validate Password Plugin, which may be used to check the security
of new MySQL users’ passwords
before approving them. If you choose to configure the Validate Password Plugin, every MySQL user you create that
authenticates using a password must have a password that complies with the policy you choose. Passwords must be at
least eight characters long and contain a combination of uppercase, lowercase, numeric, and special characters in order to
comply with the strictest policy level, which you may choose by typing 2.
Regardless of whether you choose to set up the Validate Password Plugin, the next prompt will be to set a password for
the MySQL root user.
Enter and then confirm a secure password of your choice: Note that even though you’ve set a password for the root
MySQL user, this user is not currently configured
to authenticate with a password when connecting to the MySQL shell.
If you used the Validate Password Plugin, you’ll receive feedback on the strength of your new password.
Then the script will ask if you want to continue with the password you just entered or if you want to enter a new one.
Assuming you’re satisfied with the strength of the password you just entered, enter Y to continue the script: You can then
hit Y, followed by ENTER, to agree to the default answers to all ensuing questions.

Page 1 of 3
This will stop remote root logins, delete some anonymous users, delete the test database, load these new rules, and
make sure MySQL quickly complies with your modifications.
Your MySQL installation will be protected after the script is finished.
You may now use the MySQL client to create a dedicated database user.
MySQL provides a root user account during installation, which you may use to control your database.
With full rights, this user may access all databases, tables, users, and other resources on the MySQL server.
This account should only be used for administrative purposes as a result.
This step describes how to establish a new user account and provide it access using the root MySQL user.
The root MySQL user is configured by default to authenticate via the auth socket plugin rather than using a password
in Ubuntu systems running MySQL 5.7 (and later versions).
You must run mysql with sudo privileges to access the root MySQL user because this plugin needs that the name of the
operating system user that launches the MySQL
client match the name of the MySQL user supplied in the command: Note: If you installed MySQL with another tutorial and
enabled password authentication for root, you will need to use a different command to access the MySQL shell. The
following will run your MySQL client with regular user privileges, and you will only gain administrator privileges within the
database by authenticating: Once you have access to the
MySQL prompt, you can create a new user with a CREATE USER statement. These follow this general syntax: You provide
a username after CREATE USER.
The hostname from which this user will connect immediately follows this with a @ symbol.
You can choose localhost if you only intend to use your Ubuntu server to access this user locally.
Although it’s not always essential, including the username and host in single quotes can aid in mistake prevention.
When it comes to selecting your user’s authentication plugin, you have a variety of choices.
The previously stated auth socket plugin might be useful since it offers high security without needing legitimate users
to input a password in order to access the database.
If you want to have the user authenticate using MySQL’s caching sha2 password plugin, you may completely omit the
WITH authentication plugin clause from the syntax.
Due to its robust security features, the MySQL documentation suggests this plugin for users who want to log in using a
password. Run the following command to create a user that uses caching sha2 password for authentication.

Matched Source

Similarity 34%
Title:appdrew.info › techBro.wser
Installing the MySQL Server for Ubuntu. This tutorial will go over how to install MySQL version 8.0 on an Ubuntu 20.04
server. By completing it, you will have a working relational database that you can use to build your next website or
application.
https://appdrew.info/tech/

Similarity 42%
Title:How To Install MySQL Ubuntu? - Blogit

https://www.blogit.one/how-to-install-mysql-ubuntu/

Similarity 6%
Title:www.digitalocean.com › community › tutorialsHow To Install MySQL on Ubuntu 22.04 | DigitalOcean
26/4/2022 · Following that, you can run the mysql_secure_installation script without issue. Once the security script completes,
you can then reopen MySQL and change the root user’s authentication method back to the default, auth_socket. To
authenticate as the root MySQL user using a password, run this command: mysql -u root -p
https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-22-04/

Similarity 6%
Title:www.digitalocean.com › community › tutorialsHow To Install MySQL on Ubuntu 20.04 | DigitalOcean

Page 2 of 3
Apr 23, 2020 · This will mean that you can once again connect to MySQL as your root user using the sudo mysql command.
Run the security script with sudo: sudo mysql_secure_installation This will take you through a series of prompts where you
can make some changes to your MySQL installation’s security options.
https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-20-04/

Similarity 8%
Title:MySQL Installation - Discover gists · GitHub

https://gist.github.com/BDIoTLab/8b65eacde1d0c40b003c0f2c1b25c212

Similarity 7%
Title:fidisys.com › blog › aws-ec2-ci-cdA Complete Nodejs Application Deployment from Github to AWS ...
Dec 09, 2021 · Enter and then confirm a secure password of your choice: Note that even though you’ve set a password for
the root MySQL user, this user is not currently configured to authenticate with a password when connecting to the MySQL
shell. From there, you can press Y and then ENTER to accept the defaults for all the subsequent questions. This will ...
https://fidisys.com/blog/aws-ec2-ci-cd/

Similarity 7%
Title:www.digitalocean.com › community › tutorialsHow To Install MySQL on Rocky Linux 8 | DigitalOcean
Mar 18, 2022 · If you used the Validate Password Plugin, you’ll receive feedback on the strength of your new password. Then
the script will ask if you want to continue with the password you just entered or if you want to enter a new one. Assuming
you’re satisfied with the strength of the password you just entered, enter Y to continue the script: Output
https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-rocky-linux-8/

Similarity 3%
Title:www.digitalocean.com › community › tutorialsHow To Create a New User and Grant Permissions in MySQL
Jun 12, 2012 · Once you have access to the MySQL prompt, you can create a new user with a CREATE USER statement. These
follow this general syntax: CREATE USER ' username ' @ ' host ' IDENTIFIED WITH authentication_plugin BY ' password '; After
CREATE USER, you specify a username.
https://www.digitalocean.com/community/tutorials/how-to-create-a-new-user-and-grant-permissions-in-mysql/

Page 3 of 3

You might also like