Skip to main content

MySQL/MariaDB

Access from Remote Systems

$ mysql -h 192.168.1.8 -u root -p Enter password: You have to set up the remote access first: $ m...

Change a User Password

(2017-09-13) > update mysql.user set Password=PASSWORD('newpass') WHERE user='username'; > flush ...

Change MySWL Root Password

(if you don't know what it is) Log on to your system as the Unix mysql user that the mysqld serve...

Comma Separated Values Format for MySQL Data

Comma Separated Values format for MySQL Data mysql> SELECT * INTO OUTFILE '/tmp/result.csv' FIELD...

Database Information

(2019-02-28) List tables in a database SHOW TABLES List columns in a table SHOW COLUMNS FROM myta...

List Databases

(2023-05-02) The most common way to get a list of the MySQL databases is by using the mysql clien...

List Users

(2017-06-21) SELECT User FROM mysql.user; More info: SELECT User, Host, Password FROM mysql.user;

Localhost Only

To make mysql listen only on the localhost interface, add the following to each of the three sect...

max_allowed_packet

(4 February 2013) Problem When doing an import, I get the error: ERROR 1153 (08S01) at line 96: G...

MySQL Backups

The Theory Backup: #!/bin/bash for i in `echo "show databases" | mysql -u mysql | grep -v Databas...

MySQL Backups: problem

Problem I have inherited a stone-aged RedHat 8.0 system running mysql 3.23.52 which cannot be upg...

New Page

(2006-09-07) Previously, in MySQL To create a user jsmith with password Secret15 and allow them t...

Quick Start For MySQL On RedHat

...assuming you are using the rpms that come with your distro, and you have actually installed th...

Tomcat Connections

Problem: An apache Tomcat application could not connect to the mysql database. The user was defin...

Who Am I In MySql?

(2023-05-02) You can use the CURRENT_USER and USER functions as follows: SELECT CURRENT_USER(); S...