473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

`table` doesn't exist... but I'm sure it does!

abdoelmasry
104 100+
Hi Men

i have real problem using mysql database

i make database for my site with mysql

it have very important data

but i think the database tables corrupted

when i use the command

[PHP]select * from table_name;[/PHP]

or

[PHP]describe table_name;[/PHP]

i always get this message:

[PHP]ERROR 1146 (42S02): Table 'job.pages' doesn't exist[/PHP]

im sure the table is exists but mysql server couldn't read it

i need data get back

Any Idea ??
Sep 11 '07 #1
17 78028
pbmods
5,821 Expert 4TB
Heya, Abdoelmasry.

Changed thread title to better describe the problem (did you know that threads whose titles do not follow the Posting Guidelines actually get FEWER responses?).

Are you using the correct database (jobs)?

Try executing
Expand|Select|Wrap|Line Numbers
  1. SHOW TABLES;
.
Sep 11 '07 #2
abdoelmasry
104 100+
Hi pbmods

im sorry For bad title

when i execute : SHOW TABLES;

i can see all database tables

but i cannot treat them

you Know ??

I cann't drop any of them

Any one help plz
Sep 11 '07 #3
code green
1,726 Expert 1GB
Do you have the relevant permissions?
Sep 12 '07 #4
abdoelmasry
104 100+
yes code green

im using mysql with full control permissions im the root
Sep 13 '07 #5
code green
1,726 Expert 1GB
This is a mystery. If you are convinced the table is corrupted and they are MyISAM you could run
Expand|Select|Wrap|Line Numbers
  1. REPAIR TABLE tablename
.
Never used it, and it should be used with caution.
Are you sure you are looking at the right database and using the correct table name?
Sep 14 '07 #6
pbmods
5,821 Expert 4TB
Heya, abdoelmasry.

Are you working on a case-sensitive filesystem? Are you matching the spelling and the capitalization of your table name?

Is, for example, the table named `Pages` or `PAGES`, but you're trying to access a table named `pages`?
Sep 14 '07 #7
abdoelmasry
104 100+
Hey Men

im sure that im useing the correct characters case

my database name is 'job'

when i tried to repair any database table by using this command:

[PHP]repair table pages;[/PHP]

i got this error:
Expand|Select|Wrap|Line Numbers
  1. +-----------+--------+----------+---------------------------------+
  2. | Table     | Op     | Msg_type | Msg_text                        |
  3. +-----------+--------+----------+---------------------------------+
  4. | job.pages | repair | error    | Table 'job.pages' doesn't exist |
  5. +-----------+--------+----------+---------------------------------+
  6.  
i gonna be mad
Sep 15 '07 #8
pbmods
5,821 Expert 4TB
Heya, Abdoelmasry.

What do you get when you issue a SHOW TABLES?
Sep 15 '07 #9
abdoelmasry
104 100+
hi pbmods

I got all database tables

Command :

Expand|Select|Wrap|Line Numbers
  1. show tables;
Result:

Expand|Select|Wrap|Line Numbers
  1. +---------------+
  2. | Tables_in_job |
  3. +---------------+
  4. | cpanelstyle   |
  5. | cptags        |
  6. | cpusers       |
  7. | forms         |
  8. | pages         |
  9. | parts         |
  10. | phrase        |
  11. | styles        |
  12. +---------------+
and this is All database (job) tables .
Sep 16 '07 #10
pbmods
5,821 Expert 4TB
Heya, Abdoelmasry.

Are any of the other tables giving you trouble? Or is it just the `pages` table?
Sep 16 '07 #11
abdoelmasry
104 100+
Hi pbmods

all Database tables have the same problem

I cann't use any table of 'job' database
Sep 16 '07 #12
pbmods
5,821 Expert 4TB
Heya, Abdoelmasry.

Are these InnoDB tables or MyISAM tables?

Did you just recently upgrade your MySQL version?
Sep 16 '07 #13
abdoelmasry
104 100+
i used mysql 5 to create this database ('job')

and

i installed new system copy and new mysql copy

but it's the same version mysql 5

i think it couldn't be form changing operating system

it's InnoDB tables
Sep 16 '07 #14
pbmods
5,821 Expert 4TB
Heya, Abdoelmasry.

Have a look at this document.
Sep 16 '07 #15
abdoelmasry
104 100+
thank U man

all database tables have extension .frm

no other extensions

i tried another solution

i created new database then put 'job' tables files in the new directory of new database

but i have the same problem i can't (describe , select , repair , drop) any table

i checked every table size , i found that all tables have the same size

it's 9 kb so im sure this tables not carring data

i created new table the checked it's size , it's 9 kb

so i can say all tables are corrupted and i can't get it back

if i could repair any table .. what about size ??

thank you guys for tryying
Sep 17 '07 #16
pbmods
5,821 Expert 4TB
Heya, Abdoelmasry.

What you need to do is create a new database and set up your tables...

... and then go into the filesystem and physically copy the old database table files (*.frm) into the new database folder.
Sep 17 '07 #17
abdoelmasry
104 100+
hey pbmods

i tried that but it's not working

the problem with the tables

if i changed database name or directory

i still have problem

Thank U Man

i will start my job with new database
Sep 17 '07 #18

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: g | last post by:
Is there a method where by I could check for a certain table or query exist in my access database file before I made query to it??
3
by: serge | last post by:
If I join Table1 to Table2 with a WHERE condition, is it the same if I would join Table2 to Table1 considering that the size of the tables are different. Let's assume Table2 is much bigger than...
1
by: jack | last post by:
using the following xsd code : <xs:element name="tblUsers"> <xs:complexType> <xs:sequence> <xs:element name="UserID" type="xs:int" /> <xs:element name="FullName" type="xs:string" />...
3
by: otac0n | last post by:
How can I select the maximum value from a field, but make sure that the value i want stays greater than a cetrain value? I currently have this: SELECT A.rating, B.rating,...
0
by: Edwin Knoppert | last post by:
I wonder how i can make use of a usercontrol which consists of a table with lot's of background images. I simply want that table prepared but it's contents is unknown, a sort of pane or if tab...
5
by: Stephen | last post by:
Hello, I have 2 tables, one contains log of all incoming phone calls, and the other one is simply a phone book. I want to fetch caller's name if it's already exist in the phone book, and if it...
3
by: tshad | last post by:
Using VS 2005: Here is a piece of code that is saying that a variable doesn't exist which obviously does: public string UpdateTables(TableFieldList tableFields, UnmappedNamesCollection...
3
by: =?Utf-8?B?S2F5xLFoYW4=?= | last post by:
In my project,i added datagridview to my form , i transfered my table to datagridview and added multiple rows and when i called dataadapther.update ,,result is ok. But when i tried it for the...
3
by: maheswaran | last post by:
May this question exist....But i confused...I want to check whether the table is exist or not .... Like i run a project , on that project i create a temp tables while run time.... on that i want...
2
by: anoop s | last post by:
I want to delete records of one table that exist in another table. The tables have no primary key. It will take a lot of time compare field by field. Is there any method record by record comparison...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.