Install MariaDB in fedora 33

Solved: To install mysql or myriadb in fedora 33 is quite simple. Step 1: For that open a terminal and simply type the following command. [root@localhost ~]# dnf install mariadb-server  -y Step 2: In second step run the following commad to enable the firewall for mysql [root@localhost ~]# firewall-cmd –add-service=mysql –permanent [root@localhost ~]# firewall-cmd –reload […]

How to create a virtual host in fedora.

Solved: First: Create a file at /etc/httpd/conf.d/ location with .conf extension and insert the following code block. <virtualhost *:80>   DocumentRoot “/var/www/project-folder”   ServerName domain-name    <Directory “/var/www/project-folder”>       Options Indexes FollowSymLinks       AllowOverride All       Require all granted   </Directory></virtualhost> Second: create a project under /var/www/     named “project-folder” as virtualhost DocumentRoot. Insert the domain in hosts file at /etc/hosts […]

ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)

Solved: Login to new mysql server by following command: $ sudo mysql MariaDB [(none)]> use mysql; MariaDB [mysql]> ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘password’; Now you can login with the following command: $ mysql -u root -p Enjoy.