mysql instance disk quota

2015-09-06 Thread Ken Peng
Hello, We have some instances running in a hardware server, each instance has different port. For quota limits, we can adjust my.cnf to control each instance's memory usage, also can use cgroups to set CPU quota. But what's the general solution to setup the disk quota? For example, I want

Re: mysql instance disk quota

2015-09-06 Thread Ken Peng
How to set OS disk quota? On 2015/9/6 17:52, Reindl Harald wrote: set OS disk quota for them -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: mysql instance disk quota

2015-09-06 Thread Ken Peng
Hi, If disk quota is reached, an error can be threw out. we can accept this policy. Thanks. On 2015/9/6 17:28, Reindl Harald wrote: Am 06.09.2015 um 11:08 schrieb Ken Peng: We have some instances running in a hardware server, each instance has different port. For quota limits, we can

Re: error 13

2012-10-16 Thread Lixun Peng
Hi, What's the dir permissions? For example, if we have a file in /a/b/file, dir a is 644, even though file is 777, we can't access file, too. On Wed, Oct 17, 2012 at 10:31 AM, kalin ka...@el.net wrote: hi all.. this hasn't happened before... i'm in as root on the command line cleint.

Re: Error message I am getting today. All help appreciated.

2012-10-16 Thread Lixun Peng
Hi, What query is running? Is web server and DB server in the same server? Have something in error.log of MySQL? On Wed, Oct 17, 2012 at 10:32 AM, ad...@canadianinvestors.com ad...@canadianinvestors.com wrote: Hi, I run www.canadianinvestors.com and am getting this error message. Warning:

Re: error 13

2012-10-16 Thread Lixun Peng
? if not, google the docs for 'local infile' yes. my laptop. On 2012-10-16 10:45 PM, Lixun Peng pengli...@gmail.com wrote: Hi, What's the dir permissions? For example, if we have a file in /a/b/file, dir a is 644, even though file is 777, we can't access file, too. On Wed, Oct 17

Re: Can I measure the use of index?

2012-10-15 Thread Lixun Peng
Hi, If you are using Percona Server, you can use this query: SELECT DISTINCT s.table_schema, s.table_name, s.index_name FROM information_schema.statistics `s` LEFT JOIN information_schema.index_statistics indxs ON ( s.table_schema =

import xml data to multiple tables in mysql

2011-10-25 Thread Peng Yu
automatically from DTD. Does anybody have some suggestions? http://www.nlm.nih.gov/databases/dtd/nlmmedlinecitationset_110101.dtd -- Regards, Peng -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Unique on non null entries but allowing multiple nulls

2011-10-17 Thread Peng Yu
a table column like this? -- Regards, Peng -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Synchronize two mysql servers (single user, only one server (but not both) can be changed at any given time)

2011-10-17 Thread Peng Yu
at the database file level using something like unison. However, this will be slow when the database file gets bigger. But I'm wondering what is the best way to synchronize mysql databases in the scenario that I just mentioned. -- Regards, Peng -- MySQL General Mailing List For list archives: http

How to enable tabular output when reading command from file?

2011-10-16 Thread Peng Yu
a new flea collar | | Whistler | 1998-12-09 | birthday | First birthday | +--++--+-+ 10 rows in set (0.03 sec) -- Regards, Peng -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

Generate errors when loading table

2011-10-16 Thread Peng Yu
-- Regards, Peng -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

What charset to use for greek character Β?

2011-10-16 Thread Peng Yu
for this greek letter. -- Regards, Peng -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: What charset to use for greek character Β?

2011-10-16 Thread Peng Yu
-t -hlocalhost -uxxx main.sql ~/linux/test/mysql/mysql/LOAD_DATA/CHARACTER_SET$ ./main.sh +--+ | name | +--+ | βΒ | +--+ 2011/10/16 Peng Yu pengyu...@gmail.com: Hi, I have the greek character Β (not that it is different from the English character B, although they look similar

Re: Is downloads.mysql.com download?

2011-10-15 Thread Peng Yu
On Sun, Oct 9, 2011 at 10:33 AM, Peng Yu pengyu...@gmail.com wrote: Hi, I'm not able to connect to downloads.mysql.com. Is it down? I guess the problem is that this website is too slow for a browser (like firefox) to download (it takes too long to initiate the transaction because the browser

Is downloads.mysql.com download?

2011-10-09 Thread Peng Yu
Hi, I'm not able to connect to downloads.mysql.com. Is it down? -- Regards, Peng -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: Is downloads.mysql.com download?

2011-10-09 Thread Peng Yu
guess either links on http://dev.mysql.com/doc/ should be fixed or downloads.mysql.com should be fixed. On Sun, Oct 9, 2011 at 10:47 AM, Carlos Proal carlos.pr...@gmail.com wrote: Downloads are available in http://dev.mysql.com/downloads Carlos On Sun, Oct 9, 2011 at 10:33 AM, Peng Yu pengyu

Why the same command have different results when it is in a bash script and when it is not?

2011-10-09 Thread Peng Yu
of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql -- Regards, Peng -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

ERROR 1 (HY000): Can't create/write to file '/var/lib/mysql/#sql_9e1_0.MYI' (Errcode: 13)

2011-01-17 Thread Peng Yu
select geneName as symbol, name as refSeq, chrom, strand, txStart, txEnd from refFlat group by refSeq having count(*)=1; ERROR 1 (HY000): Can't create/write to file '/var/lib/mysql/#sql_9e1_0.MYI' (Errcode: 13) -- Regards, Peng -- MySQL General Mailing List For list archives: http

concatenate sql query with group by and having

2010-07-28 Thread Peng Yu
by refSeq having count(*)=1); -- Regards, Peng -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

multiple level database hierarchy

2010-05-13 Thread Peng Yu
I seems that mysql and may SQL has only two levels databases-tables. Where there many tables, it become hard to properly name the tables and databases. I'm wondering if there is any variant of SQL or some other database that support arbitrary levels of complexity. -- Regards, Peng -- MySQL

How to select rows from only the first N rows in a table?

2010-04-27 Thread Peng Yu
It seems that there is no direct support to limit 'select' to only the first N rows in a table. Could you let me know what the best way select rows from the first N rows in a table is? -- Regards, Peng -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

How to compute the min and max of two numbers?

2010-04-26 Thread Peng Yu
where min(col1, col2) = max(col3,col4) I could expand the above expression to just using primitive comparisons. But it would not be very readable. I'm wondering if there is a better way to do so in sql. -- Regards, Peng -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql

mysqldump hex-blob option

2010-03-04 Thread peng yao
hello erveryone, I have a question about mysqldump.I have some blob data, someone tell me mysqldump the data must use hex-blob options, why?

Configure error of mysql-connector-odbc-5.1.5r1144 (missing sqlext.h)

2009-09-26 Thread Peng Yu
Hi, I try to configure mysql-connector-odbc-5.1.5r1144, But I got the following error. Can somebody let me know where to download the package which includes sqlext.h? Regards, Peng checking whether the f95 linker (/home/pengy/utility/linux/bin/ld -m elf_x86_64) supports shared libraries... yes

Re: Suppressing Warnings

2009-08-24 Thread peng yao
Warning: Can't create database 'spreadsheets'; database exists This is the answer. 2009/8/24 Victor Subervi victorsube...@gmail.com Hi, I have the following python code: cursor.execute('create database if not exists spreadsheets;') cursor.execute('use spreadsheets;') but it generates

Re: mysqldump and access rights

2009-07-26 Thread peng yao
you also can do this:#sudo -u mysql mysqldump command or #su - mysql -c mysqldump command 2009/7/24 walter harms wha...@bfs.de muhammad subair schrieb: On Thu, Jul 23, 2009 at 10:10 PM, walter harms wha...@bfs.de wrote: Hi list, i use mysqldump --tab to create database dumps. this

Re: mysqldump output

2009-07-23 Thread peng yao
#mysqldump -u username -p -h mysqld_host databasename database_name.sql username is the mysqld server login name mysqld_host is the mysqld server address or hostname databasename is the database which you should dump You can use man mysqldump or mysqldump --help to get more infomation 2009/7/21

Re: mysqldump and access rights

2009-07-23 Thread peng yao
# chown mysql.mysql datafile 2009/7/23 walter harms wha...@bfs.de Hi list, i use mysqldump --tab to create database dumps. this will produce txt and sql files. the resulting sql files is owned by the user but the resulting datafile is owned by mysql.mysql is there any way to change that

Re: Can anybody know how to determinate whether a variable 's type?

2007-12-21 Thread Kyo Peng
On Dec 21, 2007 7:45 PM, Moon's Father [EMAIL PROTECTED] wrote: If you know ,just tell me,thanks. etc. declare cnt int default 0; How can I know what type the variabe cnt is? Can't 'desc table' show what you want? -- MySQL General Mailing List For list archives:

Re: Hi,I want to know how big to configurate the max-connections parameter in my.cnf?

2007-12-21 Thread Peng
On Dec 22, 2007 10:55 AM, Moon's Father [EMAIL PROTECTED] wrote: how big your mysql connections's users. How big users? don't know what you said. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: converting some rows from utf-8 to iso-8859-1

2007-08-30 Thread Ken Peng
)); first you select utf8 string from db one by one and store it to $utf8_str,then use the function above to be converted to iso-8859-1,then insert it again to mysql. -- Ken Peng [EMAIL PROTECTED] -- http://www.fastmail.fm - Accessible with your email software or over

Re: servers full potential / FT searches locking tables

2007-08-29 Thread Ken Peng
for a 32bit system?Thanks. -- Ken Peng [EMAIL PROTECTED] -- http://www.fastmail.fm - I mean, what is it about a decent email service? -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: servers full potential / FT searches locking tables

2007-08-28 Thread Ken Peng
use 4G memory? If so,the config below for 32 bit OS is may wrong,is it?Thanks. key_buffer_size=2G innodb_buffer_pool_size=2G -- Ken Peng [EMAIL PROTECTED] -- http://www.fastmail.fm - The way an email service should be -- MySQL General Mailing List For list archives: http://lists.mysql.com

about log file

2006-05-17 Thread Peng Yi-fan
Hi everyone, How to change the log file path of a database. I am using Window XP OS. Thanks. Peng

about log

2006-05-15 Thread Peng Yi-fan
Hi, I would like to change the path of a database's log. Which command I should choose? Thanks. Peng

Re: SELECT Query GROUP BY

2006-05-11 Thread Peng Yi-fan
The schema of your contract should be like this: Contract (id, level, ...) where column 'id' is the primary key, isn't it? If so, you can try this: SELECT COUNT(id) FROM contract GROUP BY level - Original Message - From: Jay [EMAIL PROTECTED] To: mysql@lists.mysql.com Sent:

Err Nr.

2006-05-10 Thread Peng Yi-fan
Does anyone know where to download the 'Err Nr. Description'? pdf is best. Peng

SQL:2003 standard

2006-05-10 Thread Peng Yi-fan
Hi, It seems that ISO do not support SQL:2003 standard for free but I really need a copy. Does anyone know where I can download it? Or does anyone have it? Any type will be just OK. Peng

privilege unstable

2003-08-22 Thread Fei Peng
Description: High Resolution Science Imaging experiment(HiRISE) project for one of important instrument on MRO spacecraft which will be launched to MAR in 2005 are using MySQL server 4.0.13 as database management system. we recently encounter a unstable privilege problem.what we do like that: (1)

Copying to tmp table

2002-09-23 Thread Teh Chee Peng
hi, Does anyone has any idea to improve this situation? When I show my processlist, there is inner join query that having Copying to tmp Table state, and it takes quite long time to finish the query. Any idea to avoid Copying to tmp Table? I have tried to increase my tmp_table_size however it

Connection from java

2002-02-23 Thread peng yahui
I am using mysql 4.0 on linux and mm.mysql 2.0.11, however I can't access mysql from java application. try { Class.forName( org.gjt.mm.mysql.Driver ).newInstance(); Connection connection = DriverManager.getConnection (jdbc:mysql://localhost/test?user=xxxpassword=yyy );

-fno-implicit-templates, -fno-exceptions,-fno-rtti problems

2002-02-19 Thread Peng Zhao
be used). I want to find a workaround for this issue, but first I need to know why these flags are needed. Can you explain me this? Can I eliminate these options and make mysql still runs well? thanks. Peng

Re: -fno-implicit-templates, -fno-exceptions,-fno-rtti problems

2002-02-19 Thread Peng Zhao
throw-catch stuff is not performance friendly (just because the exception handling mechanism? but usually exceptions are very rare, there is no need to avoid exception, from this point of view)? thanks. Peng

Re: -fno-implicit-templates, -fno-exceptions,-fno-rtti problems

2002-02-19 Thread Peng Zhao
don't want the mysqld crashed randomly when I do benchmarking on it. And greetings to a fellow UofA student (though I've now graduated). thank you. I am honored. -- Regards Peng -- Peng Zhao [EMAIL PROTECTED] http

Msql-Mysql-modules-1.2219 bug?

2002-02-15 Thread Peng Zhao
) Fix: how to correct or work around the problem, if known (multiple lines) Submitter-Id: submitter ID Originator: Organization: Regards Peng -- Peng Zhao [EMAIL PROTECTED] http://www.cs.ualberta.ca/~pengzhao

Create Tables

2001-05-27 Thread Wong Yew Peng
Dear Sir, The Create Table function is not working. Any steps that I need to take besides creating a database first. Yew Peng Singapore - Before posting, please check: http://www.mysql.com/manual.php (the manual