Welcome To Snipplr


Everyone's Recent Snippets Tagged mysql



1 ... 10 11 12 13 14 ... 19
This could be further abstracted to work with other db's. Also, it really should be using Ruby's Tempfile class instead of assuming the local machine is *NIX based, but it works :)
0 1149 posted 15 years ago by nate63179
1 1250 posted 15 years ago by Mithun
If you need to list all of the MySQL databases managed by Plesk along with their corresponding domains and login credentials, you can use this query:
1 1180 posted 15 years ago by tobewan
Where: * 3307 is the local port used to connect to the remote database. You can use 3306, however, this could conflict with your PC’s MySQL installation. * localhost and 3306 is the MySQL address from the remote server (most people will...
0 1088 posted 15 years ago by danshields
1 1198 posted 15 years ago by oslego
1 1152 posted 15 years ago by troynt
Must have a field named Weight. The more Weight the more often the record is selected. Weight should be an integer between 1 and 10.
1 1194 posted 15 years ago by BFTrick
MySQL Insert Unique Reference using MAX() to obtain latest value Alternate solution to using Composite Primary Keys which INNODB engine does not support.
0 1128 posted 15 years ago by cherbert
1 999 posted 15 years ago by nkm
This snippet collects a date from a var and formats it into the correct format for database date entry
0 1210 posted 15 years ago by daveismyname
0 962 posted 15 years ago by 1b0t
Remove <>
0 1444 posted 15 years ago by jodm
3 1306 posted 15 years ago by nkm
Dumps whole query so developer can see where is error. However it's potential security issue, exposing SQL commands to attacker. (Recommended to use only during development, replace message code with some custom error text)
0 1332 posted 16 years ago by acosonic
This piece of code will store each line of a txt file into a mysql database
2 1571 posted 16 years ago by fackz
Used to make sure the server log dose not fill up the hd.
2 988 posted 16 years ago by mushookies
0 956 posted 16 years ago by jonniespratley
Outputs MySQL server stats : uptime, threads, questions, slow queries, opens, flush tables, open tables, queries per sec (avg).
2 891 posted 16 years ago by NyX
How to fix MySQL Query Browser socket connection problem
0 1060 posted 16 years ago by armandoalves
0 1411 posted 16 years ago by CuDDL
4 1234 posted 16 years ago by pdswan
1 ... 10 11 12 13 14 ... 19