LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2012, 03:20 AM   #1
zak100
Member
 
Registered: Jul 2009
Posts: 225

Rep: Reputation: 2
Guidance for accessing mysql database using perl


Hi,
I want to access mysql using perl. I have got some programs which use:
Code:
use DBI;
DBI->connect(...)
commands. I have following questions:
i) Do I have to start mysql first? I am doing this but I have to first use
Code:
su
service mysqld start
After this the prompt becomes:
Code:
  
mysql>
how can i run perl??

ii) how can i use create table command in perl?

Plz guide me.
Zulfi.
 
Old 09-29-2012, 08:57 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,647

Rep: Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501
yes, you need start mysqld (or you need to connect to another running mysql server).
The prompt mysql> is not related to mysqld (or service), but the mysql client. You need not start it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error accessing mysql database on server until mysqld restarted vdemuth Slackware 4 12-29-2011 05:21 AM
Perl Mysql Database connection big Linux - Newbie 1 07-03-2009 12:41 AM
using perl to insert special characters into mysql database ihopeto Programming 5 12-25-2006 04:08 PM
accessing mysql database through c sonika_singhi Programming 5 12-15-2004 09:37 AM
How to interact with MYSQL database from within perl program Bassam Programming 5 02-26-2004 05:00 PM


All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration