Tagged Posts with: MySQL

MySQL File Access, Access Denied

December 31st, 2008 | Posted in MySQL
2

If you need to access files for importing directly from MySQL you may have encountered an error stating the following. Access denied for user: 'user@localhost' (Using password: YES) The user used to execute the import needs the FILE privilege in order to complete a command similar the one below. LOAD DATA INFILE filename INTO TABLE ...

GoDaddy Now Allows Direct Access to MySQL on Shared Hosting Plans

December 25th, 2008 | Posted in Hosting, MySQL
7

GoDaddy.com has recently added the ability for shared hosting plans owners to access their MySQL databases directly. Once you start the MySQL creation process you will have the option to Allow/Disallow direct access. This is very useful if you do not want to use phpMyAdmin to administer your MySQL database such as an initial import ...

MySQL Match Dates with a UNIXTIME Field

December 19th, 2008 | Posted in MySQL
1

Here is how to grab and compare a date directly from a MySQL query if you are storing your dates as UNIXTIME. SELECT * FROM table WHERE MONTH(FROM_UNIXTIME(unixtime_fieldname)) = MONTH(CURDATE()) AND DAY(FROM_UNIXTIME(unixtime_fieldname)) = DAY(CURDATE()) AND YEAR(FROM_UNIXTIME(unixtime_fieldname)) = YEAR(CURDATE()) This particular query is looking for any records that have the same month, day and year as ...

MySQL Replace String, Similar to PHP str_replace()

December 17th, 2008 | Posted in MySQL
0

Very handy function if you need to replace a string in your MySQL database tables. UPDATE table SET field = REPLACE(field, 'Old Value', 'New Value') Reference MySQL String Functions http://dev.mysql.com/doc/refman/5.1/en/string-functions.html...

Great MySQL mysqldump Split Utility

November 26th, 2008 | Posted in MySQL, Software
3

If you are in a situation where you don’t have access to mysql via command line to import your mysqldump file and need to use phpMyAdmin but limited to the size that you can import SQL Dump Splitter will help you keep your sanity. It will split the files into smaller split files from the ...

My Essential Developer's Toolbox – Part I

November 23rd, 2008 | Posted in ASP.NET, MySQL, PHP, Programming, SQL Server, Software
2

This is a multi-part post that lists all of the tools that I use on a regular basis as a web developer. The list is Microsoft Windows centric but I will point out the applications that are cross-platform (as best as I can). IDEs (Integrated Development Environment)* Microsoft ASP.NET Both of the IDEs below are ...