473,809 Members | 2,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MySQL Database Forum

MySQL database (open source) - Ask questions about mysql server, setup, queries, optimization, errors, tables, syntax, functions, SQL, storage engines, MySQL cluster, replication, scalability, availability, stored procedures, views and more.
0
911
thread by: Serpico | last post Mar 5 '06 by: Serpico
I have an Windows .exe that I need to pass flags to that would be data pulled from a mysql DB. This exe file with args will be automatically run via the task scheduler. That part I can do. :) Example: someapp.exe -pid -cid -sid pid, cid, and sid are arguments that are currently stored in a mysql DB. I expect a shell script would be the...
2
1,367
thread by: Erik van der Veen | last post Mar 5 '06 by: Bill Karwin
Hi, Can anybody tell me how I can get the backup ( just a file copy of the directory with .frm, .MYI and .MYD files) back into a newly created database. I am failry new to MySQL. Due to a crash of my Windows 2003 server I was in a hurry creating a very quick backup so I didn't tokk the time to find out what a correct backup mechanisme...
2
5,314
thread by: zeljko.prince | last post Mar 4 '06 by: zeljko.prince
This is a copy from http://forums.mysql.com/read.php?10,73797,73797#msg-73797. Perhaps someone on this group will know the answer. Given the following table: CREATE TABLE foo(field VARCHAR(20) NOT NULL); The following query *can not* be executed: INSERT INTO foo VALUES(NULL);
0
1,129
thread by: sean quilty | last post Mar 4 '06 by: sean quilty
Help! We are getting the following errors on a slave server: 060304 7:42:03 Error reading packet from server: Could not find first log (server_errno=65535) 060304 7:43:03 Slave: Failed reading log event, reconnecting to retry, log 'wcassp801.2514' position 76 060304 7:43:03 Slave: reconnected to master 'repl@10.20.10.10:3306',replication...
2
1,945
thread by: phillip.s.powell | last post Mar 4 '06 by: phillip.s.powell
SELECT s.id, s.student_first_name, s.student_last_name, IF(s.student_ethnicity_interest_other IS NOT NULL AND s.student_ethnicity_interest_other != '', CONCAT(s.student_ethnicity_interest_other, ', ', e.ethnicity_name), GROUP_CONCAT(DISTINCT e.ethnicity_name ORDER BY upper(e.ethnicity_name)) ) AS ethnicity_name FROM student s, ethnicity...
0
1,263
thread by: phillip.s.powell | last post Mar 3 '06 by: phillip.s.powell
SELECT id, student_first_name, student_last_name, major, minor , MATCH(major, minor) AGAINST ('"mechanical engineering"') AS score FROM students WHERE MATCH(major, minor) AGAINST ('"mechanical engineering"' IN BOOLEAN MODE) GROUP BY id, student_first_name, student_last_name, major, minor, score ORDER BY score DESC This query in MySQL...
2
3,392
thread by: phillip.s.powell | last post Mar 3 '06 by: phillip.s.powell
mysql> select id, student_first_name, student_last_name, email, application_date, modification_date, unique_key from student where id in (7268, 862); +------+--------------------+-------------------+----------------------------+---------------------+---------------------+------------------+ | id | student_first_name | student_last_name |...
2
2,908
thread by: trihanhcie | last post Mar 3 '06 by: trihanhcie
I m currently working on a Unix server with a fedora 3 as an os My current version of mysql is 3.23.58. I'd like to upgrade the version to 5.0.18. After downloading from MYSQL.COM the package on the site, I made : rpm -i MySQL-server-5.0.18-0.i386.rpm then i have errors that relate to many conflicts. I cannot figure out why -and- cannot...
7
1,526
thread by: Dave Hammond | last post Mar 3 '06 by: noone
Hi All, I'd like to have indexed search capability on column A, column B, or columns (A,B) for a given table. According to the MySQL manual, a multi-column index of (A,B) will provide "leftmost prefix" indexing, so that I can search on column A uniquely or columns (A,B) together, but not on column B uniquely. Therefore, I would need a...
5
2,515
thread by: zMisc | last post Mar 3 '06 by: Bill Karwin
Are there any tricks in updaitng a JOINed recordset? I joned to tables and when I try to change a field on the recordset and update it, I get this error: "Unknown column 'CCDE' in 'where clause'. CCDE is a field from one of the table and is not a field I am updating. I uses MyODBC with VB6 and MySQL 5.
1
1,289
thread by: pmorrison | last post Mar 2 '06 by: Bill Karwin
Hi, I am using a MySQL database and have email address as the Primary Key. I also store a username of which there should not be duplicates. I am trying to check for this by doing the following: $query5 = "SELECT username FROM member WHERE username='$username';"; $result5 = mysql_query($query5) or die('Error during subscription process,...
1
1,413
thread by: Paul | last post Mar 2 '06 by: Bill Karwin
Hi, I want to store particular algorithms written in Java into a database (preferably MySQL) and then be able to accept values such as algorithm type and parameters from a user (via JDBC) which will select the algorithm from the database, excecute it and return the result. I understand that MySQL does not support Java object types, so does...
4
1,252
thread by: phillip.s.powell | last post Mar 1 '06 by: phillip.s.powell
select id from school_year where lower(school_year_name) = select lower(i.enrollment_status) from interns.interns i, interns.student s where i.unique_key = s.unique_key group by i.id; produces ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to...
6
34,930
thread by: phillip.s.powell | last post Mar 1 '06 by: phillip.s.powell
update student s set school_year_id = (select distinct s.id from school_year s, interns i where lower(s.school_year_name) = lower(i.enrollment_year)and s.unique_key = i.unique_key group by s.id); ERROR 1242 (21000): Subquery returns more than 1 row I am trying to replace a column in interns.student.school_year_id to read an ID from the...
0
1,055
thread by: usman.cs | last post Mar 1 '06 by: usman.cs
Hello, I am using mysql 5 and trying to import a database from version 4. But it keeps on giving me erros about invalid dates (e.g 2004-04-31) and Error 1265 (data truncated for Column X at row 1) I know it is some settings problem but don't know where to make changes. Any help would be much appreciated. Thanks. Usman
2
1,754
thread by: kevinjbowman | last post Mar 1 '06 by: Bill Karwin
I have the following query I wrote in MySQL 5.0 Select eq_employees.empid, eq_sigreturns.returnid From eq_employees Left Join eq_sigreturns ON eq_employees.empid = eq_sigreturns.empid
0
962
thread by: Sonnich | last post Mar 1 '06 by: Sonnich
Hi all! I seem to still have problems with MySQL. I wanted to create a new instance in order to run some tests of DB sizes. I want to create a new db, user etc... using teh command line client I removed the old instance, and created a new one. Could not login as root. Simply crashes. Service cannot start. Dont know why.
3
5,396
thread by: secretspot | last post Mar 1 '06 by: Gordon Burditt
Hello group, I want to delete the content of a single column on a MySQL 3.23 database. Tried DELETE column_name FROM table_name; and other varieties with e.g. WHERE clause. No luck until now. The above statement gives the error msg: ERROR 1066: Not unique table/alias: column_name
3
2,435
thread by: phillip.s.powell | last post Mar 1 '06 by: Bill Karwin
Is this how it's done? INSERT INTO student ( (SELECT DISTINCT a.* FROM student_spring a, student_summer b WHERE a.unique_key != b.unique_key)\ UNION (SELECT DISTINCT b.* FROM student_summer b, student_spring a WHERE b.unique_key != a.unique_key)
0
4,030
thread by: Joachim | last post Feb 28 '06 by: Joachim
Environment: Windows XP - german settings. MySQL: 5.0.18-nt Database charsets have been changed from 'latin1' (where 'LOAD DATA' worked fine) to utf-8 to resolve some charset issues with Perl/Tk. When loading a csv-file to the data base in the new utf-8 environment and an 'Umlaut' appears within a field the rest of the field including the...
3
1,395
thread by: subaruwrx88011 | last post Feb 28 '06 by: Jonathan
Hello, I am very new to MySQL and just got done reading the replication chapter in my reference manual. I kinda understand but I still don't know if my scenario is going to work out. Here is my scenario. I have 2 servers, A and B. A is the primary server and master in mysql. B is the redundant server and the slave in mysql. A is...
3
567
thread by: Evil Bert | last post Feb 28 '06 by: Bullit2k
I hope someone can help with this. If so then I'd really appreciate it. I have this sql statement: SELECT * FROM affiliates_referrals, applications WHERE affiliates_referrals.application_id = applications.application_id AND applications.status =2
1
3,476
thread by: fareeda.tamboli | last post Feb 28 '06 by: noone
hi.. I need to select records ordered by a string column. But when I order by with data containing an underscore, the result is not as expected. Following probably will make the problem clearer: When I try this on Oracle: SELECT LEAST('aa','ab','a_') FROM DUAL; The results is 'a_'
0
1,337
thread by: JimO | last post Feb 28 '06 by: JimO
Can anyone tell me if mysql and sqldatasource work together? I'm assuming it does not since I can't get any hits with a search on the MySQL website.
0
953
thread by: JimO | last post Feb 28 '06 by: JimO
When I read in dates, to ADO.Net datasets, the date gets converted from the yyyy-mm-dd format to a short date and time field. It's easy enough to reformat for output using the format function, but even if I just read a dataset and write it right back, I get null values in the date field. MySQL will write the record, but once I read it back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.