Top "Mysql" questions

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

MySQL unknown column in ON clause

I have the following MySQL query: SELECT p.*, IF(COUNT(ms.PropertyID) > 0,1,0) AS Contacted, pm.MediaID, date_format(p.…

sql mysql mysql-error-1054
How do I do a fuzzy match of company names in MYSQL with PHP for auto-complete?

My users will import through cut and paste a large string that will contain company names. I have an existing …

mysql string matching fuzzy-search
Resetting ROOT password in MySQL 5.6

I have been following these instructions for resetting root password for local installation of MySQL 5.6 on Windows 7 laptop. I stopped …

mysql windows-7 passwords password-recovery mysql-5.6
MySQL: Auto increment temporary column in select statement

How do I create and auto increment a temporary column in my select statement with MySQL? Here is what I …

mysql auto-increment temporary
combining mysql AND OR queries in Codeigniter

I want to combine AND OR mysql queries in CI. I have already seen this thread: http://codeigniter.com/forums/…

php mysql codeigniter codeigniter-2
Using a Submit Button to insert an entry into a MySQL database via PHP?

I'm pretty new to PHP, so I'm not quite sure on what to do with this. Basically I'm trying to …

php html mysql submit-button
Hibernate JPA, MySQL and TinyInt(1) for Boolean instead of bit or char

Here is my JPA2 / Hibernate definition: Code: @Column(nullable = false) private boolean enabled; In MySql this column is resolved to …

java mysql hibernate jpa jpa-2.0
What is the PDO equivalent of function mysql_real_escape_string?

I am modifying my code from using mysql_* to PDO. In my code I had mysql_real_escape_string(). What …

php mysql pdo sql-injection
Connect to Docker MySQL container from localhost?

I have a docker mysql image running, following is what the docker-compose.yml file looks like: db: image: mysql environment: …

mysql macos docker docker-compose
Grant a user permission to only view a MySQL view and nothing else

This question was originally using MySQL 5.1.44, but is applicable to MySQL 8.0+ too. Let's say I have a table with records …

mysql view permissions database-permissions grant