Hello,
I wasn't able to find out (googling, reading mysql reference manual) how to get value of DATETIME in seconds in MySQL.
I dont mean to extract seconds from datetime, but to convert it into seconds.
Thanx
Hi,
what are your mysql ninja tricks? What features are extra special?
I'm starting with ORDER BY FIELD which enables you to sort in a particular order, like this:
SELECT url FROM customer ORDER BY FIELD(customer.priority, 1, 2, 3, 0)
Features like this is hard to find in the mysql documentation.
Bring it!
We use MySQL server 5.1.43 64-bit edition. InnoDB is used as engine.
We have a sql script which we execute every time we build the application.
On ubuntu machine with MySQL server and InnoDB engine it takes about 55 seconds to complete the execution.
If I run the same script on OSX, it takes close to 3 minutes!
Any ideas why OSX is so slow while executing this script?
Hi All,
I am using Kohana 3. I want to log the MySQL queries being executed by an application. The reason to determine the query of type INSERT,UPDATE and DELETE which are being executed in a process and store them in another MySQL table with date-time for further reference.
Can anybody tell how can I achieve this?
I am trying to access some information from mysql, but am getting the warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource for the second line of code below, any help would be much appreciated.
$musicfiles=getmusicfiles($records['m_id']);
$mus=mysql_fetch_assoc($musicfiles);
for($j=0;$j<2;$j++)
{
if(file_exists($mus['musicpath']))
{
echo '<a href="'.$mus['musicpath'].'">'.$mus['musicname'].'</a>';
}
else
{
echo 'Hello world';
}
}
function getmusicfiles($m_id)
{
$music="select * from music WHERE itemid=".$s_id;
$result=getQuery($music,$l);
return $result;
}
I tried to build an index over a two columns of a 30,000,000 entry database.
I canceled the process after ~60hr as it didn't seem to work.
For some reason MySQL takes only 22 mb ram instead of using the RAM fully.
Is index building an operation that needs no Ram or is there some way to tell MySQL to use more RAM to be faster?
Hi,
I'm trying to upgrade our company's 4.1.22 version of MySQL to 5.
I'm using
sudo yum --enablerepo=centosplus upgrade mysql*
but keep getting an error of conflicted files with the 4.1 version.
Does that mean there really isn't any other way than uninstalling 4.1 and installing 5.0? I have read that using the yum upgrade command should work however...
Thanks in advance!
I have a Windows Application in C#. This application interacts with a remote mySQL database. Should I create a PHP web service to do these (insert/add/delete/update) or use mySQL connector for c#? I'm not sure which way is better.
Thanks!
I have MySQL data that looks like this:
+----------------------------------------+
|Name | kode | jum |
+----------------------------------------+
| aman |kode1 | 2 |
| aman |kode2 | 1 |
| jhon |kode1 | 4 |
| amir |kode2 | 4 |
+--------------------+-----------+-------+
How can I make the table look like this one, using a MySQL query?
kode1 kode2 count
aman 2 1 3
jhon 0 4 4
amir 0 4 4
Hi All,
I'm trying to determine which my.cnf mysql is using. Is there a command or something for mysql or mysqladmin that shows which one is being loaded?
Hello,
do you have any tips for some GUI applications (free) that are capable of debugging MySQL stored procedures?
I tried devArt dbForge MySQL Studio which worked just fine, but it's not free.
Thanks for any tips.
How can I serach word with "&" using mysql full text search ?
There are words string, like "Marks & Spencer", "at&t" in my tables , serach "at&t", but can't find it on the database using mysql full text search
Any ways to serach word with "&"?
I was given the daunting task of converting a ASP website to PHP and MSSQL to MySQL, and I ran into an issue that hopefully somebody can help
I have a user table which has a password field with datatype Varbinary(128), are using pwdencrypt to encrypt the password.
Is there a way to transfer that over to MySQL, and somehow i need to be able to keep the password intact... how can i go about that? any pointers would be greatly appreciated!
Hi! What would be an appropriate way to do this, since mySQL obviously doesnt enjoy this.
To leave either partitioning or the foreign keys out from the database design would not seem like a good idea to me. I'll guess that there is a workaround for this?
Update 03/24:
http://opendba.blogspot.com/2008/10/mysql-partitioned-tables-with-trigger.html
http://stackoverflow.com/questions/1537219/how-to-handle-foreign-key-while-partitioning
Thanks!
I want to know if I can repopulate the autoincrement value in mysql.
Because, I have records that look similar:
ID Name
1 POP
3 OLO
12 lku
Basically , I want a way to update the ID to this
ID Name
1 POP
2 OLO
3 lku
Is there any way to do this in mysql?
Thanks.
I am working on a web application using Python (Django) and would like to know whether MySQL or PostgreSQL would be better when deploying for production.
In one podcast Joel said that he had some problems with MySQL and the data wasn't consistent.
I would like to know whether someone had any such problems. Also when it comes to performance which can be easily tweaked?
I have set a JDBCRealm for web-app inside tomcat, and when I reload it I got this from tomcat:
SEVERE: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
I use tomcat 6.0.24, with MySQL Connector 5.1.10,,,
I've got regexes inserted directly into a MySQL database, how do I convert html entities to their safe equivalents using a MySQL query?
EDI: The data is already in the database.
In a Django project, some cronjob programs are mainly used for administrative or analysis purposes, e.g. generating site usage stats, rotating user activities log, etc.
We probably do not hope MySQL to cache queries in those programs to save memory usage and improve query cache efficiency.
Is it possible to turn off MySQL query cache explicitly in those programs while keep it enabled for other parts including all views.py?
Is there a quick and easy way to backup both SQL Server 2008 and MySQL, all their databases?
Right now I have a batch script that runs, but I have to manually add a database each and every time, and I'm sick of maintaining it. So I want to set it up to backup all SQL Server and then all MySQL, I dont care if its two different solutions, just want the ability to backup all the databases without having to type them in.
Thank you.
Hi,
Would like to ask is there any way to synchronize Ms Access and mySQL but are hosted in different hosting.
If I update the Ms Access, the mySQL database in different Host is updated automatically.
Thank you.
Hi guys,
I got this Error when querying MYSQL Database:
Glib-Error **: gmem.c:173:falied to allocate 216000000 bytes aborting..
Do anybody have some explanations?
I am using MYSQL Query Browser.
thanks
Hi all,
I have a table that contains sales transaction (~20 mil rows). Previously I used MSSQL and export it to an Excel pivot. Data refresh took 10-15 minutes but still do-able. However, after I migrated to MySQL (using XamppLite & ODBC), it took forever to refresh the data in the Excel pivot.
Maybe I didn't optimize the MySQL good enough ? Anyone can share some thoughts 'bout this ?
Thanks
Hi, i'm trying to migrate from sqlexpress to mysql, and am having an issue with the DateTimeOFfset(7) field in one of my tables. MySQL is refusing to handle it.. Is there a way to get around this?