What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-18 13:35:02
add mysql to path
For windows users only! I had a lot of trouble for this one, but I found the solution. Visit this page: https://overiq.com/installing-mysql-windows-linux-and-mac/ And then follow the steps, but instead of putting this (in step 5): C:\Program Files\MySQL\... Add solution -
Other 2022-02-17 14:10:31
You can change this value on the server by setting the 'max_allowed_packet' variable.
For Windows S.O 1. Win+R(shortcut for 'run'), type services.msc, Enter 2. You could find an entry like 'MySQL56', right click on it, select properties 3. You could see sth like "D:/Program Files/MySQL/MySQL Server 5.6/bin\mysqld" --defaults-file... Add solution -
Other 2022-02-06 13:55:02
mysqli_connect(): (hy000/2002): no connection could be made because the target machine actively refused it.
If you look at your XAMPP Control Panel, it's clearly stated that the port to the MySQL server is 3306 - you provided 3360. The 3306 is default, and thus doesn't need to be specified. Even so, the 5th parameter of mysqli_connect() is the port, which is wh... Add solution -
Shell/Bash 2022-02-02 19:45:30
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
# This is usually caused by the fact that the # MySQL Server isn't even running # On Windows, check your services, if its not running # start it, or install and start it. # On *nix, for this example Debian based # Firstly see if it's even running ps aux ... Add solution -
SQL 2021-11-20 23:02:10
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysql.sock' (2) Ask
## ERROR 2002 (HY000): ## Can't connect to local MySQL server through socket #### Follow below steps and you good to go... #### sudo dpkg-reconfigure mysql-server-{version_number} ##version_number should be mysql version number installed ## Now try log... Add solution -
SQL 2021-11-06 15:07:16
how to start mysql server in windows 10
option 1: Launch the MySQL Command-Line Client. To launch the client, enter the following command in a Command Prompt window: mysql -u root -p . The -p option is needed only if a root password is defined for MySQL. Enter the password when prompted. Opti... Add solution -
SQL 2021-11-06 05:42:19
macos configure mysql access denied for user 'root'@'localhost'
You can do the following on Mac (El Capitan) Open a Terminal window, use the command below to stop mysql if it's already running. sudo /usr/local/mysql/support-files/mysql.server stop You can also check System Preferences > MySQL to see if it is run... Add solution -
PHP 2021-11-04 20:53:20
PHP copy table from one database to another
// Create a new MySQL database connection if (!$con = new mysqli('localhost', $username, $password, $database)) { die('An error occurred while connecting to the MySQL server!<br><br>' . $con->connect_error); } // Create an array of MyS... Add solution -
Shell/Bash 2021-11-01 09:47:17
install php on ubuntu
# Update packages lists sudo apt update # Install Apache2 (on Ubuntu, mostly it's already installed) sudo apt install apache2 # Install the latest version of PHP and Apache wrapper sudo apt install php libapache2-mod-php # Install some important PHP ex... Add solution