Top "Mysql" questions

MySQL is a free, open source Relational Database Management System (RDBMS) that uses Structured Query Language (SQL).

SQL: How to perform string does not equal

I have the following query SELECT * FROM table WHERE tester <> 'username'; I am expecting this to return all …

mysql
insert multiple rows via a php array into mysql

I'm passing a large dataset into a MySQL table via PHP using insert commands and I'm wondering if its possible …

php mysql codeigniter insert bulkinsert
MySQL root password change

I have been trying to reset my MySQL root password. I have run the mysqld_safe --skip-grant-tables, updated the root …

mysql root mysqladmin
Can table columns with a Foreign Key be NULL?

I have a table which has several ID columns to other tables. I want a foreign key to force integrity …

sql mysql database foreign-keys
How to make MySQL handle UTF-8 properly

One of the responses to a question I asked yesterday suggested that I should make sure my database can handle …

mysql utf-8
How to create a database from shell command?

I'm looking for something like createdb in PostgreSQL or any other solution that would allow me to create database with …

mysql shell command-line
Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

I am on a server that has afresh install on RHEL 5. I was able to install Apache and PHP just …

mysql linux rhel rhel5
PHP code to convert a MySQL query to CSV

What is the most efficient way to convert a MySQL query to CSV in PHP please? It would be best …

php mysql csv
If table exists drop table then create it, if it does not exist just create it

I'm stumped, I don't know how to go about doing this. Basically I just want to create a table, but …

mysql
Which is best data type for phone number in MySQL and what should Java type mapping for it be?

I am using MySQL with Spring JDBC template for my web application. I need to store phone number with only …

java mysql phone-number digit