RE: myPhpAdmin

2006-01-04 Thread Peter Normann
ss to a mysql console on the mysql host, try this: GRANT ALL PRIVILEGES ON .* TO 'quest'@'r2d2.dahl-stamnes.net' IDENTIFIED BY 'somepassword'; FLUSH PRIVILEGES; Remember to set the password in the config file accordingly... Regards, Peter Normann -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

OT: Show Constraint_type

2005-08-07 Thread Peter Normann
g ctrl-c would kill the client... Peter Normann -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: how do i solve this problem?

2005-08-06 Thread Peter Normann
Sounds like you are trying to import records already present on server B. You might want to add drop table in your dump... Something like: mysqldump --complete-insert --extended-insert --add-drop-table Peter Normann yousef albarak wrote: > hi, > I am try to restore many databases from

Primary keys in tables [restarted]

2005-06-16 Thread Peter Normann
anybody would share their thoughts on any advantages or drawbacks as to having the primary key contain meaningful data. Peter Normann -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Primary keys in tables

2005-06-16 Thread Peter Normann
Hi everybody, It appears to be usual practice from what I can see in this list to use a primary key that actually contain somewhat meaningful data. I have always used primary keys solely for one purpose only: To identify a table row uniquely, using autoincremental integers. Actually, if I were to

RE: Install Mysql 4 on Fedora Core 2

2005-06-13 Thread Peter Normann
might consider browsing mysql's site at http://www.mysql.com. Specifically http://dev.mysql.com/downloads/mysql/4.0.html might be interesting. Peter Normann -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: WebHosting with MySQL.......

2005-06-08 Thread Peter Normann
seName.* TO 'myUserName'@'HostNameOrIPAddressOfApacheServer' IDENTIFIED BY 'myPassword'; 2. Flush the mysql server user privilege cache mysql> FLUSH PRIVILEGES; Now go read the manual. Peter Normann -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: WebHosting with MySQL.......

2005-06-08 Thread Peter Normann
command line > client'. It is not necessary to run mysql as a service, however it is necessary to run it somehow, that being as a service or standalone application. The command line client is still a client, thus it depends on the mysql server being accessible. Peter Normann -- MySQ

RE: WebHosting with MySQL.......

2005-06-07 Thread Peter Normann
ySql in the first place, but nevertheless I assume you must be establishing the database connection first hand in your script. This being the case, you should be able to apply a different hostname than 'localhost' in your connection script. Remember to verify that the grant privilege

RE: problem when running mysql server

2005-05-26 Thread Peter Normann
t that install the initial tables : (excerpts from TFM): To initialize the grant tables, use one of the following commands, depending on whether mysql_install_db is located in the bin or scripts directory: shell> bin/mysql_install_db --user=mysql shell> scripts/mysql_install_db --user=mysql

RE: InnoDB to MyISAM

2005-05-26 Thread Peter Normann
re foreign keys. Constraints are constraints. Foreign key constraints are... well, you do the math. So, in your opinion, MySql was never really a relational database until whatever version enforcing refential constraints was released? Peter Normann -- MySQL General Mailing List For list

RE: update combine values

2005-05-25 Thread Peter Normann
UPDATE UserTable SET FullName = CONCAT(IFNULL(CONCAT(FirstName, ' '), ''), IFNULL(CONCAT(MiddleName, ' '), ''), IFNULL(LastName,'')); Peter Normann -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: Installer for 4.0.13

2005-05-25 Thread Peter Normann
ysql 4.0.13 or later... Peter Normann -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: help needed to create index

2005-05-25 Thread Peter Normann
Asha <> wrote: > Is there a physical > limitation in the InnoDb table structure as to why it can't > support FullText indexes? http://dev.mysql.com/doc/mysql/en/fulltext-restrictions.html http://dev.mysql.com/doc/mysql/en/innodb-restrictions.html Peter Normann -- M

RE: Installer for 4.0.13

2005-05-24 Thread Peter Normann
find them here: http://dev.mysql.com/downloads/mysql/4.0.html Peter Normann -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: complicated query | no Sub query

2005-05-23 Thread Peter Normann
.id_secr_rqst AND t1.name_rec_type='Exception Resource' AND dt_aud_rec = Latest OR dt_aud_rec = NoSoLatest HAVING Latest > NoSoLatest GROUP BY t1.id_secr_rqst ORDER by t1.dt_aud_rec DESC; I am not 100% sure about the syntax, but you might get the idea. Peter Normann -- MySQL Gener

RE: complicated query | no Sub query

2005-05-23 Thread Peter Normann
mit IMO is mysql specific (I hope I am wrong) is there something > generic so I dont need to bother about which database I am running it > against. As far as I know it is MySql specific. SQL Server's equivalent is SELECT TOP 2 or something. Peter Normann -- MySQL General Mailing List Fo

RE: complicated query | no Sub query

2005-05-23 Thread Peter Normann
Hi Anoop Try: SELECT t1.id_secr_rqst, t2.name_rec_type, t1.dt_aud_rec FROM isr2_aud_log t1, isr2_aud_log t2 WHERE t1.id_secr_rqst = t2.id_secr_rqst AND t1.name_rec_type='Exception Resource' ORDER by t1.dt_aud_rec DESC LIMIT 2; Peter Normann -- MySQL General Mailing List For lis

RE: 2 Joins in 1 Query

2005-05-23 Thread Peter Normann
E B.Booking_Type = "Booking" AND DATE_FORMAT(B.Booking_Start_Date, "%Y-%m-%d") >= '2005-01-01' AND DATE_FORMAT(B.Booking_Start_Date, "%Y-%m-%d") <= '2005-12-31' HAVING WEEK = MYWEEK GROUP BY WEEK; Supposing you have 53 records in week with num

RE: 2 Joins in 1 Query

2005-05-23 Thread Peter Normann
oject_ID = "23", 1,0)) AS `Project A`, SUM(IF(B.Project_ID = "42", 1,0)) AS `Project B` FROM Bookings B LEFT JOIN Projects P ON (P.Project_ID = B.Project_ID) WHERE B.Booking_Type = "Booking" AND DATE_FORMAT(B.Booking_Start_Date, "%Y-%m-%d") >= '2005-01-01&

RE: How to get timestamp of inserted record

2002-07-30 Thread Peter Normann
Hi Jenny, I believe that the timestamp field will automatically be set to NOW() when you INSERT a record... In other words, you can disregard the timestamp field in the INSERT query Peter Normann -Original Message- From: Jenny Christy [mailto:[EMAIL PROTECTED]] Sent: 30. juli

RE: Bug in FLOOR() function

2002-07-30 Thread Peter Normann
I tried the following in 3.23.49: SELECT FLOOR((25*9.54)+0.5); -> 238 SELECT FLOOR(238.5+0.5); -> 239 SELECT FLOOR((25*9.54)+0.50001); -> 239 SELECT FLOOR((25*9.54)+0.51); -> 238 Isn't the world a funny place? Peter Normann -Original Message-

RE: Need help with a complex query

2002-06-18 Thread Peter Normann
= 0; Jeez either I should be getting some coffee or some sleep Peter Normann -Original Message- From: Jamie Tibbetts [mailto:[EMAIL PROTECTED]] Sent: 18. juni 2002 22:21 To: Peter Normann; [EMAIL PROTECTED] Subject: Re: Need help with a complex query >>> Try - and I

RE: LEFT JOIN again... Although, this time I think it's a design flaw rather than a query one....

2002-06-16 Thread Peter Normann
p by... I'll have a look and see what I can come up with. If you know what's missing, I wont mind finding out :-) Kind Regards, Chris Knipe MegaLAN Corporate Networking Services Tel: +27 21 854 7064 Cell: +27 72 434 7582 - Original Message - From: "Peter Normann" <

RE: LEFT JOIN again... Although, this time I think it's a design flaw rather than a query one....

2002-06-16 Thread Peter Normann
OR weather_data.Site='FAJS'; Work? You can add LIMIT 1 to the query... Peter Normann -Original Message- From: Chris Knipe [mailto:[EMAIL PROTECTED]] Sent: 16. juni 2002 19:00 To: [EMAIL PROTECTED] Subject: Re: LEFT JOIN again... Although, this time I think it's a design fl

RE: Need help with a complex query

2002-06-16 Thread Peter Normann
Well, my best guess is that you should consider indexing your tables... If you haven't done so already, indexing will cause dramatic effect on the speed of the queries... Peter Normann -Original Message- From: Jamie Tibbetts [mailto:[EMAIL PROTECTED]] Sent: 16. juni 2002 19:

RE: A LEFT OUTER JOIN question.

2002-06-16 Thread Peter Normann
You're welcome, Ian. Being new to this list, I'm just trying to gather enough credit to get people to look at my recent post ;-) Peter Normann -Original Message- From: mySQL list [mailto:[EMAIL PROTECTED]] Sent: 16. juni 2002 18:29 To: Peter Normann; [EMAIL PROTECTED] Subj

RE: Need help with a complex query

2002-06-16 Thread Peter Normann
ons.customerid AND Subscriptions.listid='2' AND Ordered_Items.orderid IS NULL AND Orders.customerid IS NULL AND NOT Customers.bad_email; Peter Normann -Original Message- From: Jamie Tibbetts [mailto:[EMAIL PROTECTED]] Sent: 16. juni 2002 18:23 To: [EMAIL PROTECTED] Subject: Need help

RE: Nested queries and joins

2002-06-16 Thread Peter Normann
Oops, I meant SELECT ad_catego.* FROM ad_catego, db_subcategory WHERE ad_catego.db_subcategory=rules.db_subcategory AND rules.db_category_int != '2' AND rules.db_login !='$session_login'; ? Peter Normann -Original Message- From: Peter Normann [mailto:[EMAIL P

RE: Nested queries and joins

2002-06-16 Thread Peter Normann
SELECT ad_catego.* FROM ad_catego, db_subcategory WHERE ad_catego.db_subcategory=rules.db_subcategory AND rules.db_category != '2' AND rules.db_login !='$session_login'; ? Peter Normann -Original Message- From: Balteo [mailto:[EMAIL PROTECTED]] Sent: 17. juni 2

RE: A LEFT OUTER JOIN question.

2002-06-16 Thread Peter Normann
Try SELECT Items.ItemID, Stuff.info FROM Items LEFT JOIN Stuff ON (Items.ItemID = Stuff.ItemID && (type=0 || type IS NULL)); Peter Normann -Original Message- From: mySQL list [mailto:[EMAIL PROTECTED]] Sent: 16. juni 2002 17:59 To: [EMAIL PROTECTED] Subject: A LEFT OU

RE: LEFT JOIN again... Although, this time I think it's a design flaw rather than a query one....

2002-06-16 Thread Peter Normann
Sorry, I didn't read the mail through before replying... :-/ -Original Message- From: Chris Knipe [mailto:[EMAIL PROTECTED]] Sent: 16. juni 2002 15:43 To: [EMAIL PROTECTED] Subject: LEFT JOIN again... Although, this time I think it's a design flaw rather than a query one Hiya again

RE: LEFT JOIN again... Although, this time I think it's a design flaw rather than a query one....

2002-06-16 Thread Peter Normann
tions.MetarCode IS NULL; Note the LEFT JOIN weather_locations in stead of weather_data Peter Normann -Original Message- From: Chris Knipe [mailto:[EMAIL PROTECTED]] Sent: 16. juni 2002 15:43 To: [EMAIL PROTECTED] Subject: LEFT JOIN again... Although, this time I think it's a de

RE: Help with indexing

2002-06-16 Thread Peter Normann
Sorry for not mentioning it, but yes I have indexed manager.Person... Peter Normann -Original Message- From: httpd [mailto:httpd] On Behalf Of Joseph Bueno Sent: 16. juni 2002 10:54 To: Peter Normann Cc: [EMAIL PROTECTED] Subject: Re: Help with indexing Peter Normann wrote

Help with indexing

2002-06-16 Thread Peter Normann
--+ Any help will be appreciated, since I use this query in a number of functions and it is a big problem... Best regards Peter Normann - Before posting, please check: http://www.mysql.com/manual.php (the manual)