I have a new pc and I am re-installing my entire dev-area. But I am making a mistake setting up mysql workbench.
So, on my old laptop, I used lamp en phpmyadmin to set-up my localhost to create local wordpresses. The sites get stored in de phpmyadmin mariadb, the wordpress sites go in the htdocs file. You configure the db in phpmyadmin, en the configfile from the wordpress. Next, if you go to localhost/sitename .. I get my local wordpressite.
Since I am a junior java developper, some people said to try to also learn to work with the mysql workbench. I have set up a mysqlserver and mysqlworkbench. Using commandbashes, I can see my connections are working. Also the connection in msql workbenc works. here below a copy of this:
muski@MuskiPro:~$ sudo mysql -u root
[sudo] wachtwoord voor muski:
Sorry, probeer het opnieuw.
[sudo] wachtwoord voor muski:
Sorry, probeer het opnieuw.
[sudo] wachtwoord voor muski:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
muski@MuskiPro:~$ sudo mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 26
Server version: 8.0.27-0ubuntu0.20.04.1 (Ubuntu)
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
muski@MuskiPro:~$ mysql --version
mysql Ver 8.0.27-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))
The next thing I would do using lampp was putting a new blanc wordpress in htdocs, make the config.php file and then being able to set up the wordpress by going to my localhost in the webbrowser.
This is not possible. Because, lamp is not installed, so I have no htdocs file. On the other hand, mysql workbench confirms i have a localhost now.
My question is: Is it necessary to install lampp and create a localhost like that or is it possible to set up this procedure using the localhost of mysql workbench? Or maybe it is not possible at all to use mysql workbench for wordpresssite? I am missing something here.
Since I will also use intellij Ultimate to connect to the db's, it is very necessary i set this up correct. But i would prefer to do it without phpmyadmin this time.
Thank you for your feedback.
Kr,
Yannick