Xampp mysql not working7/1/2023 To do this, there’s a few steps you got to take.ġ.) Stop the MySQL service sudo service mysql stopĢ.) Then in the terminal using root access, browse to /etc/mysql/. So in all installations done on any Linux distro, the default root password is never set. To update and upgrade, I just do $: update Which runs the purge command and uninstalls the package I specify for me. To uninstall PHP, I just do uninstall php8.1 So to update, all I gotta type is install php8.1 I alias the install, purge, update, upgrade, and autoremove functions. On a side note, I generally alias all of these things to make installing packages way way more easier for me. Installing self-assigned SSL is easy as well, but you’ll get the warning page since it’s self-assigned and not authorized by a certificate authority. I generally just put it in /var/ because it’s easier to find. Then configure it and put it in a spot where you can tell either Apache or NGINX where it’s located. All you just got to do is download it from the official site. If you want to use a different database engine than MySQL, that’s fine as well.ĭownloading phpMyAdmin is fairly easy. If you want to use the MySQL server, then you can easily do that by doing sudo apt-get -y install mysql-server If you want to use something like NGINX instead of Apache, that’s fine as well, just install NGINX and configure it to use php-fpm. sudo apt-get -y install php8.1 php8.1-mysql libapache2-mod-php8.1īy installing PHP like this, it also defaults to installing Apache as well. sudo apt-get -y install software-properties-common Socket =/Applications/XAMPP/xamppfiles/var/mysql/mysql.In the event doesn’t want to just install LAMP and may want to install different packages for their environment, then it’s easily obtainable by installing each package individually.įirst install the proper libraries and add the PPA repository to your machine. # The following options will be passed to all MySQL clients # If you want to know which options a program supports, run the program # In this file, you can use all long options that a program supports. # ~/.my.cnf to set user-specific options. # installation this directory is /Applications/XAMPP/xamppfiles/var/mysql) or # mysql-data-dir/my.cnf to set server-specific options (in this # an important part, or systems up to 128M where MySQL is used together with # This is for a system with little memory (32M - 64M) where MySQL plays The highlighted portion of the config file below is where you change the port number: my.cnf # Example MySQL config file for medium systems. Click Open Conf File and change the port number in the file.The Configure window for XAMPP’s MySQL service. When starting XAMPP’s MySQL, if it says that it cannot connect to the port number, then changing it to a new one will help. If you are unable to restart MySQL after, you can also try this command to directly start XAMPP’s MySQL server: $ sudo /Application/XAMPP/xamppfiles/bin/rver startĪrticle continues after the advertisement: c. Tip: If you have multiple mysql processes and don’t know which want to stop, you can also stop ALL MySQL processes with sudo killall mysqld.
0 Comments
Leave a Reply. |