Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > PHP

Reply
 
LinkBack Thread Tools Display Modes
Old 04-29-2004, 06:23 PM   #1 (permalink)
infinite_root
Registered User
 
infinite_root's Avatar
 
Join Date: Apr 2004
Posts: 26
infinite_root is on a distinguished road
mysqladmin: connect to server at 'localhost' failed

Hi Gurus out there,

I am trying to configure phpopenchat. An error appeared as follows:

A database (tablespace) with name "poc" could not be found!

I checked the dialog box create this database (tablespace)!
Choose one of the existent databases (tablespaces):


So I try creating poc database using the ff:

# mysqladmin create poc
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: NO)'

However, I can open my database using:
# mysql -u root mysql -p
without any problem.

What could be the problem?

Also, anyone here had a successful installation of phpopenchat? Anyone care to point me to the right direction to accomplish it's installation? There's no available Installation manual translated in English

I know this isn't the right forum. But no one was attending my question at sourceforge.

Iam a little to late in accomplishing our project. Hope you can help me

Thanks and more power to all.
infinite_root is offline   Reply With Quote
Old 04-29-2004, 09:20 PM   #2 (permalink)
redhead
Super Moderator
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,879
redhead is on a distinguished road
I havn't tried phpopenchat, but the error you're getting is because you didn't tell mysqladmin that you wanted the 'poc' created in the "tablespace" database.
Then just do it the old fasion way..
Code:
~> mysql -u root -p tablespace
 Enter password: ********* # roots password
 Reading table information for completion of table and column names
 You can turn off this feature to get a quicker startup with -A

 Welcome to the MySQL monitor.  Commands end with ; or \g.
 Your MySQL connection id is 12707 to server version: 3.23.49-log

 Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

 mysql> CREATE TABLE poc ( id INT DEFAULT '0' NOT NULL ); # What ever poc should be holding
 Query OK, 0 rows affected (0.10 sec)
 mysql> quit;
 Bye
~>
But that would require you to know exactly which columns this 'poc' should take care of, itg should be listed in the database dump filed that came with phpopenchat, altho if this is the case, 'poc' should have been created when you told mysql to read that file as your "tablespace" design.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 04-29-2004, 10:03 PM   #3 (permalink)
infinite_root
Registered User
 
infinite_root's Avatar
 
Join Date: Apr 2004
Posts: 26
infinite_root is on a distinguished road
Thanks for the reply. I got it running.

More power.
infinite_root is offline   Reply With Quote
Old 04-30-2004, 06:50 AM   #4 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
there was some type of PHP chat program that had some nasty bugs in it. i don't recall what it was, you may want to look into this before making your chat live.
__________________


Urban Clothing
Admin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 12:36 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting