Re: Renaming a table that has a trigger, then attempting to drop that trigger results in 'table doesn't exist' error.

2016-01-18 Thread shawn l.green
Hello Michael, On 1/6/2016 12:51 PM, Michael Vaughan wrote: If you execute the script below, you will get the following error: 'Error Code: 1146. Table 'testschema.TestRenamed' doesn't exist" delimiter // CREATE TABLE Test( id int not null primary key auto_incre

Renaming a table that has a trigger, then attempting to drop that trigger results in 'table doesn't exist' error.

2016-01-06 Thread Michael Vaughan
If you execute the script below, you will get the following error: 'Error Code: 1146. Table 'testschema.TestRenamed' doesn't exist" delimiter // CREATE TABLE Test( id int not null primary key auto_increment, name varchar(255) )// CREATE TRIGGER TEST_TRIGGER BEFOR

Re: ERROR 1146 (42S02): Table 'ois.metadata' doesn't exist

2012-03-15 Thread Adarsh Sharma
| results | | users | | website_internalurl | +-+ 12 rows in set (0.00 sec) mysql> show create table metadata; ERROR 1146 (42S02): Table 'ois.metadata' doesn't exist

Re: ERROR 1146 (42S02): Table 'ois.metadata' doesn't exist

2012-03-15 Thread Adarsh Sharma
| | page_content| | projects| | results | | users | | website_internalurl | +-+ 12 rows in set (0.00 sec) mysql> show create table metadata; ERROR 1146 (42S02): Table 'ois.metadata' doesn't exist I backup my all rema

Re: ERROR 1146 (42S02): Table 'ois.metadata' doesn't exist

2012-03-15 Thread Baron Schwartz
       | > | groups              | > | metadata            | > | page_content        | > | projects            | > | results             | > | users               | > | website_internalurl | > +-+ > 12 rows in set (0.00 sec) > > mysql> show create ta

ERROR 1146 (42S02): Table 'ois.metadata' doesn't exist

2012-03-14 Thread Adarsh Sharma
(42S02): Table 'ois.metadata' doesn't exist I backup my all remaining tables as I not able to backup corruted tables. Thanks in advance -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: ERROR 1146 (42S02): Table doesn't exist

2012-01-24 Thread Johan De Meersman
RROR 1146 (42S02): Table 'abc1.job_queue' doesn't exist Fancy, isn't it? > I tried to roll back my procedure by mv abc1 abc but still problem > occurs. Yeps. That's the wonderful world of metadata caching for you. Restart your MySQL daemon and pray to whatever you beli

ERROR 1146 (42S02): Table doesn't exist

2012-01-24 Thread Adarsh Sharma
' doesn't exist I also check the permissions in data dir they are : 2 -rw-rw 1 mysql mysql 9227 Mar 17 2010 job_queue.frm I tried to roll back my procedure by mv abc1 abc but still problem occurs. Thanks in Advance -- MySQL General Mailing List For list archives: htt

Re: Insert only if the entry doesn't exist

2011-02-15 Thread Joerg Bruehe
Hi! Andre Polykanine wrote: > Hello Rolando, > > So if I do > "INSERT IGNORE INTO `Votes` SET `EntryId`='12345', UserId`='789'"; > it *won't* insert the second row if there's a row with EntryId set to > 12345 and UserId set to 789? If you want to have at most one vote per user on any entry, IM

Re: Insert only if the entry doesn't exist

2011-02-14 Thread Andre Polykanine
, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: Rolando Edwards To: Andre Polykanine Date created: , 11:01:40 PM Subject: Insert only if the entr

RE: Insert only if the entry doesn't exist

2011-02-14 Thread Rolando Edwards
nine [mailto:an...@oire.org] Sent: Monday, February 14, 2011 3:40 PM To: Rolando Edwards Cc: João Cândido de Souza Neto; mysql@lists.mysql.com Subject: Re: Insert only if the entry doesn't exist Hello Rolando, Sorry, but if I do INSERT IGNORE INTO, then I must indicate a key (typically a unique

Re: Insert only if the entry doesn't exist

2011-02-14 Thread Andre Polykanine
http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: Rolando Edwards To: João Cândido de Souza Neto Date created: , 10:33:05 PM Subject: Insert only if the entry doesn't exist

RE: Insert only if the entry doesn't exist

2011-02-14 Thread Rolando Edwards
bject: Re: Insert only if the entry doesn't exist Instead of "insert into" you can use "replace into". -- João Cândido de Souza Neto "Andre Polykanine" escreveu na mensagem news:1621362474.20110214201...@oire.org... Hi all, Thanks for your fast answer to my last

Re: Insert only if the entry doesn't exist

2011-02-14 Thread Jo�o C�ndido de Souza Neto
mmonly deal with. There are cases when I need to insert the row only if such a row doesn't exist, otherwise I need either to update the row or to do nothing, just skip the query. The common case is the rating increment/decrement. I have the + and - links which are AJAX. So I need to

Insert only if the entry doesn't exist

2011-02-14 Thread Andre Polykanine
Hi all, Thanks for your fast answer to my last question! Here's one more problem I commonly deal with. There are cases when I need to insert the row only if such a row doesn't exist, otherwise I need either to update the row or to do nothing, just skip the query. The common c

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-21 Thread David Harkness
On Fri, Jan 21, 2011 at 4:44 AM, Dotan Cohen wrote: > Then I would have to check what values are available when inserting, > and possibly normalise every so often. I'll think about that, and when > I have enough data in the database I'll set up a test system to play > with the possibility. > Yes

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-21 Thread Dotan Cohen
On Fri, Jan 21, 2011 at 12:29, Richard Quadling wrote: > Changing data in a database is the role of the database engine. It is > much more efficient to have the cost on the insert than it is on the > select. > Agreed. On insert I could even delegate the operation to another thread which does not

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-21 Thread Dotan Cohen
> Yes, and an edge list model may perform better in other respects too: > > http://www.artfulsoftware.com/mysqlbook/sampler/mysqled1ch20.html > http://www.artfulsoftware.com/mysqlbook/sampler/mysqled1ch20.html > Thanks. I am currently reading "Trees and Hierarchies in SQL for Smarties" by Joe Celk

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-21 Thread Dotan Cohen
> If you are doing this often, you could leave spaces in the left and right > values so that you could minimize the number of rows that need to be > updated. The article makes every leaf use x and x+1 for left and right which > forces another update to add a child. If instead you used x and x+20 yo

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-21 Thread Dotan Cohen
>> Actually, I'm the customer! But assuming that a customer exists, that >> implies compensation, and therefore fair bait. > Then that's different altogether. you get to decide what information > is displayed, and what information is 'sensed', and on what platform. > Yes, but before I get to that

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-21 Thread Richard Quadling
On 20 January 2011 19:20, Dotan Cohen wrote: > On Thu, Jan 20, 2011 at 19:21, Richard Quadling wrote: >>> That is terrific, at least the first half. The second half, with the >>> Venn diagrams, is awkward! >> >> When you get heavily nested data, the adjacent list model (where you >> have a parent

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Peter Brawley
My concern is exactly with adding new nodes. There is no incrementor (++i) in SQL, so knowingly coding a solution that will require incrementing two fields in half the database rows seems irresponsible. Yes, and an edge list model may perform better in other respects too: http://www.artfulsoftw

RE: [PHP] RE: Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Jerry Schwartz
>> [JS] I disagree. The method I proposed can be extended to any depth, and >> any >> leaf or branch can be retrieved with a single query. >> > >I suppose for retrievals this structure has advantages, but unless >MySQL has a ++ operator (or better yet, one that adds or subtracts 2 >from an int) th

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread David Harkness
On Thu, Jan 20, 2011 at 12:21 PM, Dotan Cohen wrote: > I understood that. My concern is exactly with adding new nodes. There > is no incrementor (++i) in SQL, so knowingly coding a solution that > will require incrementing two fields in half the database rows seems > irresponsible. > It only req

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Dotan Cohen
On Thu, Jan 20, 2011 at 22:05, David Harkness wrote: > Thanks for the link. That article proposes an interesting way to organize > the categories. Have you implemented this in the wild? Clearly the design > would work as it's pretty simple, and I like that it removes the need for > recursive queri

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread David Harkness
On Thu, Jan 20, 2011 at 7:00 AM, Richard Quadling wrote: > I'd recommend using a nested set approach for the tags > (http://dev.mysql.com/tech-resources/articles/hierarchical-data.html > gives a good explanation on the issues and methodology of nested > sets). > Thanks for the link. That article

Re: [PHP] RE: Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Dotan Cohen
On Thu, Jan 20, 2011 at 21:40, Jerry Schwartz wrote: >>Thanks. I prefer the "parent tag" field, though, I feel that it is >>more flexible. >> >> > [JS] I disagree. The method I proposed can be extended to any depth, and any > leaf or branch can be retrieved with a single query. > I suppose for re

Re: [PHP] RE: Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread David Hutto
tion: surely someone has implemented many >>Boolean values (tags) and a solution exist >> >> >>> As for setting up a hierarchy, that's trickier. One way to handle that is >>> to >>> work like libraries do: 10 is "fiction", 10.05 is "

RE: Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Jerry Schwartz
>-Original Message- >From: Dotan Cohen [mailto:dotanco...@gmail.com] >Sent: Thursday, January 20, 2011 11:25 AM >To: Jerry Schwartz >Cc: mysql.; php-general. >Subject: Re: Organisational question: surely someone has implemented many >Boolean values (tags) and a solutio

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread David Hutto
On Thu, Jan 20, 2011 at 2:26 PM, Dotan Cohen wrote: > On Thu, Jan 20, 2011 at 21:24, David Hutto wrote: >>> Is this a troll? Am I about to be baited? >> >> Baited to deploy what is designed to the consumer's specification? >> Surely. From what is wanted to what is needed. Troll on that. > > Actua

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Dotan Cohen
On Thu, Jan 20, 2011 at 21:24, David Hutto wrote: >> Is this a troll? Am I about to be baited? > > Baited to deploy what is designed to the consumer's specification? > Surely. From what is wanted to what is needed. Troll on that. Actually, I'm the customer! But assuming that a customer exists, th

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread David Hutto
> Is this a troll? Am I about to be baited? Baited to deploy what is designed to the consumer's specification? Surely. From what is wanted to what is needed. Troll on that. > > -- > Dotan Cohen > > http://gibberish.co.il > http://what-is-what.com > -- The lawyer in me says argue...even if you'

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Dotan Cohen
On Thu, Jan 20, 2011 at 20:50, David Hutto wrote: > Pseudo = Design Algorithm > Design Algorithm = Actual Code > Actual Code = Alterable db tables > Alterable db tables = manipulated data through the app interface with data > > -- > The lawyer in me says argue...even if you're wrong. The scientist

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Dotan Cohen
On Thu, Jan 20, 2011 at 19:21, Richard Quadling wrote: >> That is terrific, at least the first half. The second half, with the >> Venn diagrams, is awkward! > > When you get heavily nested data, the adjacent set model (where you > have a parentid for every uniqueid), you very quickly get into > co

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread David Hutto
Pseudo = Design Algorithm Design Algorithm = Actual Code Actual Code = Alterable db tables Alterable db tables = manipulated data through the app interface with data -- The lawyer in me says argue...even if you're wrong. The scientist in me... says shut up, listen, and then argue. But the lawyer

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread David Harkness
I cannot agree more with the others about using a join table. While it's tempting to go with your first solution due to fear of performance issues, you can usually address performance issues with a technical solution. Addressing problems that arise from a constraining design choice is much more dif

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Richard Quadling
On 20 January 2011 16:20, Dotan Cohen wrote: > On Thu, Jan 20, 2011 at 17:00, Richard Quadling wrote: >> I'd have my items table, my tags table and a join table for the two. >> My join table is really simple. UniqueID, ItemID, TagID. >> > > Yes, that is the first approach that I mentioned. It loo

Re: Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Dotan Cohen
On Thu, Jan 20, 2011 at 17:22, Peter Brawley wrote: > I'd exclude (1) because new tags require restructuring the table, (2) > and (3) because they break a cardinal rule of design and will be a mess > to query, leaving ... > > 4) Standard many-many bridge table: > mysql>  CREATE TABLE items_tags (

Re: Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Dotan Cohen
On Thu, Jan 20, 2011 at 17:22, Jerry Schwartz wrote: > I think the canonical way would be to have one table for your items, one table > for your tags, and one table for your tag assignments. > Thank you, I do agree that this is the best way. Other posters seem to agree as well! > Using an ever-

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Dotan Cohen
On Thu, Jan 20, 2011 at 18:20, Dotan Cohen wrote: > On Thu, Jan 20, 2011 at 17:00, Richard Quadling wrote: >> I'd have my items table, my tags table and a join table for the two. >> My join table is really simple. UniqueID, ItemID, TagID. >> > > Yes, that is the first approach that I mentioned. I

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Dotan Cohen
On Thu, Jan 20, 2011 at 17:00, Richard Quadling wrote: > I'd have my items table, my tags table and a join table for the two. > My join table is really simple. UniqueID, ItemID, TagID. > Yes, that is the first approach that I mentioned. It looks to be a good compromise. > I'd recommend using a

Re: [PHP] Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Richard Quadling
new column every time a new > category is added. This looks to me a good way given that users will > be searching per tag and a simple "SELECT item FROM tags WHERE > tag1=true;" is an easy, inexpensive query. This table will get very > large, there will likely be literally thousa

RE: Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Jerry Schwartz
CT 06032 860.674.8796 / FAX: 860.674.8341 E-mail: je...@gii.co.jp Web site: www.the-infoshop.com >-Original Message- >From: Dotan Cohen [mailto:dotanco...@gmail.com] >Sent: Thursday, January 20, 2011 9:32 AM >To: mysql.; php-general. >Subject: Organisational question: su

Re: Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Peter Brawley
I would be adding a new column every time a new category is added. This looks to me a good way given that users will be searching per tag and a simple "SELECT item FROM tags WHERE tag1=true;" is an easy, inexpensive query. This table will get very large, there will likely be literally thousa

Organisational question: surely someone has implemented many Boolean values (tags) and a solution exist

2011-01-20 Thread Dotan Cohen
;SELECT item FROM tags WHERE tag1=true;" is an easy, inexpensive query. This table will get very large, there will likely be literally thousands of items (there will exist more items than tags). 2) Store the applicable tags one per line in a text field in the items table. mysql> CREA

Re: mysqldump: Got error: 1449: The user specified as a definer ('root'@'%') does not exist when using LOCK TABLES

2010-10-20 Thread Tanmay Pradhan
ing the following version of MySQL on my Mac OS X Server 10.5.8: >>>> *** Ver 14.14 Distrib 5.4.1-beta, for apple-darwin9.5.0 (i386) using >>>> readline 5.1 *** >>>> >>>> In order to restrict root account login from localhost only, I did the >>

Re: mysqldump: Got error: 1449: The user specified as a definer ('root'@'%') does not exist when using LOCK TABLES

2010-10-19 Thread Tanmay Pradhan
rwin9.5.0 (i386) using >>> readline 5.1 *** >>> >>> In order to restrict root account login from localhost only, I did the >>> following: >>> mysql> DELETE FROM user WHERE user = 'root' AND host = '%'; >>> mysql> FLUS

Re: mysqldump: Got error: 1449: The user specified as a definer ('root'@'%') does not exist when using LOCK TABLES

2010-10-19 Thread Shawn Green (MySQL)
or: $ /usr/local/mysql/bin/mysqldump -h localhost -u root ABC_DATABASE> abc.dump mysqldump: Got error: 1449: The user specified as a definer ('root'@'%') does not exist when using LOCK TABLES To fix this, you need to reset the DEFINER for a TRIGGER defined within the database so

Re: mysqldump: Got error: 1449: The user specified as a definer ('root'@'%') does not exist when using LOCK TABLES

2010-10-19 Thread Michael Dykman
VILEGES; >> >> After this, >> mysqldump failed with the following error: >> $ /usr/local/mysql/bin/mysqldump -h localhost -u root ABC_DATABASE > >> abc.dump >> mysqldump: Got error: 1449: The user specified as a definer >> ('root'@'%') does

Re: mysqldump: Got error: 1449: The user specified as a definer ('root'@'%') does not exist when using LOCK TABLES

2010-10-19 Thread Krishna Chandra Prajapati
#x27;%'; > mysql> FLUSH PRIVILEGES; > > After this, > mysqldump failed with the following error: > $ /usr/local/mysql/bin/mysqldump -h localhost -u root ABC_DATABASE > > abc.dump > mysqldump: Got error: 1449: The user specified as a definer > ('root'@

mysqldump: Got error: 1449: The user specified as a definer ('root'@'%') does not exist when using LOCK TABLES

2010-10-18 Thread Tanmay Pradhan
x27; AND host = '%'; mysql> FLUSH PRIVILEGES; After this, mysqldump failed with the following error: $ /usr/local/mysql/bin/mysqldump -h localhost -u root ABC_DATABASE > abc.dump mysqldump: Got error: 1449: The user specified as a definer ('root'@'%') does not

Re: METAPHON does not exist

2009-08-31 Thread Shawn Green
Brent Clark wrote: Hiya I got a debian server with mysql 5 and I get the following message. ERROR 1305 (42000): FUNCTION suppor_db2.METAPHON does not exist. Would anyone know how I can fix this. Got the following installed ii libdbd-mysql-perl4.007-1

Re: METAPHON does not exist

2009-08-31 Thread Johnny Withers
That's a user defined function in the suppor_db2 database. On Mon, Aug 31, 2009 at 10:09 AM, Brent Clark wrote: > Hiya > > I got a debian server with mysql 5 and I get the following message. > > ERROR 1305 (42000): FUNCTION suppor_db2.METAPHON does not exist. > > Would

METAPHON does not exist

2009-08-31 Thread Brent Clark
Hiya I got a debian server with mysql 5 and I get the following message. ERROR 1305 (42000): FUNCTION suppor_db2.METAPHON does not exist. Would anyone know how I can fix this. Got the following installed ii libdbd-mysql-perl4.007-1 A Perl5 database

Re: DELETED records still exist?

2009-01-25 Thread Olexandr Melnyk
Probably records were deleted in a transaction, which was later rolled back? 2009/1/25 Ariela Levy > > Hi there, > > I'm running an ecommerce site and have manually deleted customer records > from mysql database however it seems these records still exist because my > aut

DELETED records still exist?

2009-01-25 Thread Ariela Levy
Hi there, I'm running an ecommerce site and have manually deleted customer records from mysql database however it seems these records still exist because my authentication routine for login is finding a match for the primary key in the customer table ( email). Does anyone have an

Re: 'mysql.servers' doesn't exist

2008-03-20 Thread Moon's Father
Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist On Fri, Mar 21, 2008 at 4:23 AM, Brown, Charles <[EMAIL PROTECTED]> wrote: > Hey Folks. > > I'm getting this error -- I need your input or help. > > > 080320 15:02:16 [E

'mysql.servers' doesn't exist

2008-03-20 Thread Brown, Charles
Hey Folks. I'm getting this error -- I need your input or help. 080320 15:02:16 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist 080320 15:02:16 [Note] Event Scheduler: Loaded 0 events 080320 15:02:16 [Note] E:\Apps\Standard\HPRUM\MY

Re: Update but insert if not exist

2007-12-17 Thread Jay Pipes
INSERT ... ON DUPLICATE KEY UPDATE: http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html Cheers, Jay J Trahair wrote: This is a question I want to know the answer to, as well! Is there any way of avoiding looking up a specific record in a table to see if it exists, before decidin

Re: Update but insert if not exist

2007-12-17 Thread J Trahair
This is a question I want to know the answer to, as well! Is there any way of avoiding looking up a specific record in a table to see if it exists, before deciding whether to INSERT INTO or UPDATE, eg: mstrSQL = "SELECT * FROM Shops WHERE ShopReference = '" & grd1.TextMatrix(numRowNo, 1) &

Re: Update but insert if not exist

2007-12-17 Thread Rob Wultsch
On Dec 16, 2007 10:29 AM, Afan Pasalic <[EMAIL PROTECTED]> wrote: > try REPLACE > http://dev.mysql.com/doc/refman/5.1/en/replace.html > > -afan Replace will not do an update. All previous data will be lost. A mysql-centric alternative solution would be to use INSERT ... ON DUPLICATE KEY UPDATE htt

Re: Update but insert if not exist

2007-12-16 Thread Afan Pasalic
try REPLACE http://dev.mysql.com/doc/refman/5.1/en/replace.html -afan Steffan A. Cline wrote: I am trying to think of a trick way to handle something. I have been successful in using the multiple inserts in one row by using the ,(xx,xx,xx),(xx,xx,xx),(xx,xx,xx) in a values block. BUT Is it poss

Update but insert if not exist

2007-12-16 Thread Steffan A. Cline
I am trying to think of a trick way to handle something. I have been successful in using the multiple inserts in one row by using the ,(xx,xx,xx),(xx,xx,xx),(xx,xx,xx) in a values block. BUT Is it possible to insert if not there for example Update if anyone not found then insert new with

Re: mysql claims table does not exist. but it does

2007-11-03 Thread Kim Briggs
eateded the database, played a little with it and then > dropped it again. > the I moved the old database in place again. > now when I want to access the tables of the database I get an error that > the tables do not exist, alltough the showtables lists them correctly. > > what can I

mysql claims table does not exist. but it does

2007-10-30 Thread robert rottermann
. now when I want to access the tables of the database I get an error that the tables do not exist, alltough the showtables lists them correctly. what can I do to fix that? to explayin thin a bit better, here a dump of an mysql dialog mysql> use urulu Database changed mysql> show

Re: Does this MySQL client exist?

2007-09-13 Thread Christoph Boget
> > > How do you go about creating the tunnel? > There are lots of good tutorials online: > http://www.google.com/search?q=create+ssh+tunnel > Excellent. My thanks to you and to everyone who participated in this thread! thnx, Christoph

Re: Does this MySQL client exist?

2007-09-13 Thread Christoph Boget
> > Again, you can get absolutely ANY client to connect over an SSH tunnel. > You create the tunnel with your SSH client, then use the tunnel to > carry your traffic. So you don't need to use an unfamiliar or non-free > program to do this. (Any program that offers a connect-over-SSH option > is v

Re: Does this MySQL client exist?

2007-09-13 Thread Baron Schwartz
Christoph Boget wrote: You're not going to get anything to connect over SFTP, because it is a file transfer protocol layered on top of SSH. SSH is a generic protocol that can create a secure tunnel between two untrusted computers, and any kind of data can ride on this protocol. The same is not

Re: Does this MySQL client exist?

2007-09-13 Thread Baron Schwartz
Christoph Boget wrote: There are lots of GUIs for connecting to MySQL databases. MySQL provide some (MySQL Query Browser and MySQL Administrator) but I prefer Toad: http://www.quest.com/toad-for-mysql/ I tried MySQL Administrator but couldn't get it to connect over SSH/SFTP. I'll take a look a

Re: Does this MySQL client exist?

2007-09-13 Thread Christoph Boget
> > There are lots of GUIs for connecting to MySQL databases. MySQL provide > some (MySQL Query Browser and MySQL Administrator) but I prefer Toad: > http://www.quest.com/toad-for-mysql/ I tried MySQL Administrator but couldn't get it to connect over SSH/SFTP. I'll take a look at toad-for-mysql a

Re: Does this MySQL client exist?

2007-09-13 Thread Edward Kay
Christoph Boget wrote: I did a search and couldn't find anything like what I'm looking for and though I doubt something like this does exist, I figured I'd ask anyway. Is there a client (not phpMyAdmin) that can connect to a server (that is running MySQL) using SSH and connect

Re: Does this MySQL client exist?

2007-09-13 Thread Christoph Boget
> > > > SSH or SFTP. The only way we can access the MySQL database on that > server > > > is either use phpMyAdmin (which I don't particularly care for; not to > > > disparage the hard work of the developers, it's just a matter of > personal > > > preference) or use the command line. > > Use the m

Re: Does this MySQL client exist?

2007-09-13 Thread Jay Pipes
Christoph Boget wrote: I did a search and couldn't find anything like what I'm looking for and though I doubt something like this does exist, I figured I'd ask anyway. Is there a client (not phpMyAdmin) that can connect to a server (that is running MySQL) using SSH and connect

Re: Does this MySQL client exist?

2007-09-13 Thread Baron Schwartz
Christoph Boget wrote: I did a search and couldn't find anything like what I'm looking for and though I doubt something like this does exist, I figured I'd ask anyway. Is there a client (not phpMyAdmin) that can connect to a server (that is running MySQL) using SSH and connect

RE: Does this MySQL client exist?

2007-09-13 Thread Weston, Craig \(OFT\)
- From: Christoph Boget [mailto:[EMAIL PROTECTED] Sent: Thursday, September 13, 2007 2:06 PM To: mysql@lists.mysql.com Subject: Does this MySQL client exist? I did a search and couldn't find anything like what I'm looking for and though I doubt something like this does exist, I figur

Does this MySQL client exist?

2007-09-13 Thread Christoph Boget
I did a search and couldn't find anything like what I'm looking for and though I doubt something like this does exist, I figured I'd ask anyway. Is there a client (not phpMyAdmin) that can connect to a server (that is running MySQL) using SSH and connect to the database that way?

Re: Table doesn't exist from stored function

2007-03-11 Thread Peter Brawley
.meta' doesn't exist CREATE FUNCTION get_version() RETURNS INT UNSIGNED BEGIN DECLARE exist_ TINYINT; SELECT COUNT(*) INTO exist_ FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'GI2' AND TABLE_NAME = 'Meta' LIMIT 1; IF (0 < exist_) THEN BEGIN

Re: Table doesn't exist from stored function

2007-03-11 Thread Shawn Green
Hello Imre, Imre Palik wrote: Hi, When I try to run this function, I receive ERROR 1146 (42S02): Table 'gi2.meta' doesn't exist CREATE FUNCTION get_version() RETURNS INT UNSIGNED BEGIN DECLARE exist_ TINYINT; SELECT COUNT(*) INTO exist_ FROM INFORMATION_SCHEMA.TABLES WHE

Table doesn't exist from stored function

2007-03-07 Thread Imre Palik
Hi, When I try to run this function, I receive ERROR 1146 (42S02): Table 'gi2.meta' doesn't exist CREATE FUNCTION get_version() RETURNS INT UNSIGNED BEGIN DECLARE exist_ TINYINT; SELECT COUNT(*) INTO exist_ FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'GI2

Re: Mysql ver. 5.0.22-standard for sun-solaris2.10 (SPARC): Error #60718 Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

2006-07-18 Thread Chris White
or #60718 Can't open and lock privilege tables: Table 'mysql.host' > doesn't exist Did you install the initial database as stated in: http://dev.mysql.com/doc/refman/5.0/en/unix-post-installation.html ? (yes it's unix, but the installation process for the initia

Mysql ver. 5.0.22-standard for sun-solaris2.10 (SPARC): Error #60718 Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

2006-07-18 Thread Calselli, Fabrizio WI
Hi there, After having installed the Mysql Ver. 5.0.22-standard for sun-solaris2.10 (SPARC) I get the error below when I try to start the mysql server: Sun-solaris# /usr/sbin/mysqld -u mysql Error #60718 Can't open and lock privilege tables: Table 'mysql.host' doesn't ex

Re: Table 'mysql.host' doesn't exist

2006-07-17 Thread Chris
thomas Armstrong wrote: I created this very-simple '/etc/my.conf': [mysqld] basedir=/usr/local/mysql datadir=/usr/local/mysql/var socket=/tmp/mysql.sock --- But it doesn't still work. '/usr/local/mysql/var' hosts the data, but within 'mysql' subdirectory, there are only two fil

Re: Table 'mysql.host' doesn't exist

2006-07-16 Thread Timothy Murphy
On Sunday 16 July 2006 12:34, thomas Armstrong wrote: > I don't've any idea about how to fix it, and I don't find any > '/etc/my.conf' file > into this machine. The install directory is '/usr/local/mysql'. I don't know anything about mysql, but on my system - Fedora 5 - the mysql databases are st

Re: Table 'mysql.host' doesn't exist

2006-07-16 Thread thomas Armstrong
wrote: Hi. Working with mySQL 3.23.58 on Linux, I get this error when trying to start mysqld: 060716 03:07:21 mysqld started 060716 03:07:21 /usr/local/mysql/libexec/mysqld: Table 'mysql.host' doesn't exist 060716 03:07:21 mysqld ended - This

Table 'mysql.host' doesn't exist

2006-07-16 Thread thomas Armstrong
Hi. Working with mySQL 3.23.58 on Linux, I get this error when trying to start mysqld: 060716 03:07:21 mysqld started 060716 03:07:21 /usr/local/mysql/libexec/mysqld: Table 'mysql.host' doesn't exist 060716 03:07:21 mysqld ended - Thi

Finding records that do not exist

2006-06-19 Thread Scott Haneda
Mysql 4 still version: 4.0.18 I have users and transaactions, the key is user_id Somehow, a bunch of users were made, and there is a total lack of a transaction record at all. I need to fix this, which means finding the user_id's of those who are not paired with a transaction record. Thanks for

Re: How do I add a column only if it doesn't exist?

2006-05-24 Thread sheeri kritzer
I don't think MySQL can do thatmaybe with some kind of stored procedure If you're using 5.0 or higher, use the INFORMATION SCHEMA to find out if the column exists. If not, use the "show create table" statement and parse it. Why is this a problem, though? (just curious, I'm not sure thi

How do I add a column only if it doesn't exist?

2006-05-24 Thread Daevid Vincent
I want to do something like this: if not exists `hotel_page_templates`.`hpt_custom_fields` alter table `hotel_page_templates` add column `hpt_custom_fields` text after `hpt_alternate_username`; ÐÆ5ÏÐ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

RE: Table doesn't exist?

2006-03-28 Thread Sara Woglom
006 4:24 AM To: Sara Woglom Cc: mysql@lists.mysql.com Subject: Re: Table doesn't exist? Hi, Better suggestion is you would have backed your ibdata1 and alo the log file because that is the data files which contains your precouse data. If you have your backup try to import the l

RE: Table doesn't exist?

2006-03-27 Thread Sara Woglom
I can't run the chown command. I'm on a Windows 2003 Server machine. -Original Message- From: Ing. Edwin Cruz [mailto:[EMAIL PROTECTED] Sent: Monday, March 27, 2006 3:01 PM To: 'Sara Woglom' Subject: RE: Table doesn't exist? Are the permissions corect

RE: Table doesn't exist?

2006-03-27 Thread Ing. Edwin Cruz
Are the permissions corectly to that file??? Chown mysql:mysql /mysql/data/dbname/tablename.* -Mensaje original- De: Sara Woglom [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 27 de Marzo de 2006 01:47 p.m. Para: mysql@lists.mysql.com Asunto: Table doesn't exist? I had to shut

Table doesn't exist?

2006-03-27 Thread Sara Woglom
I had to shut down my MySQL server (5.0.18) because of an error while editing a table ("Table is full"). I restarted it fine, but in order to do so I had to delete all my ibdata and ib_logfile files. Now, I am getting ERROR 1146: Table 'dbname.tablename' doesn't exist.

Re: drop table that doesn't exist

2006-03-21 Thread James Harvard
ust in case they already exist ( >such as on a re-creation of the tables ). > >mysql is giving me the following error on the drop table when I run the >script the first time -- i.e. when there isn't a table to drop yet. > > ERROR 1051 at line 1: Unknown table 'MyTable

drop table that doesn't exist

2006-03-21 Thread ChadDavis
I'm runnning a script that creates a few tables. I have line that drops the tables before the creation of the tables just in case they already exist ( such as on a re-creation of the tables ). mysql is giving me the following error on the drop table when I run the script the first time -

Re: error 1146 X.1 does not exist

2006-02-02 Thread Gleb Paharenko
Hello. MySQL CC is not supported now, and could have some problems with a fresh versions of MySQL. If error doesn't appear in latest MySQL Administrator then everything is ok. > [local] ERROR 1146: Table 'llcopy.1' doesn't exist Have a look here: http://dev.mysql.com/d

RE: error 1146 X.1 does not exist

2006-02-02 Thread Kerry Frater
February 2006 10:05 To: mysql@lists.mysql.com Subject: error 1146 X.1 does not exist Can someone point me in the right direction. I had 4.1 running and all was well with my little program. I decided to test the code with the newer 5.0.18. I updated my DB and then tried to access it using the

error 1146 X.1 does not exist

2006-02-02 Thread Kerry Frater
me to view table structure but not to add any numerical columns. Using the Control centre, If I double click on the table I wish to view data I get two lines in the message area Empty set (0.00) sec [local] ERROR 1146: Table 'llcopy.1' doesn't exist llcopy being my test datab

Re: Joined delete where records may or may not exist

2006-01-05 Thread Dusan Pavlica
t; To: "MySql" Sent: Thursday, January 05, 2006 9:53 AM Subject: Joined delete where records may or may not exist Hello, mysql 4.0.18-standard-log (yeah, I know, I need to update, the date format changes are a nightmare :-)) I have two tables, cart, and products, I need to do this style del

Joined delete where records may or may not exist

2006-01-05 Thread Scott Haneda
Hello, mysql 4.0.18-standard-log (yeah, I know, I need to update, the date format changes are a nightmare :-)) I have two tables, cart, and products, I need to do this style delete: First, I need to join the two tables on the cart.product_id = products.id and delete those records where products.o

Re: "Function Does Not Exist"

2005-11-20 Thread Pyt
d("Password",Password.Text) > > Cmd.ExecuteNonQuery() > cID = CStr(Cmd.Parameters("return").Value) > > When I execute this code, I get the error, "#42000FUNCTION > fccamp.sp_InsertNewCamper does not exist". However, it DOES exist. I can > see it. It&

  1   2   3   >