/    Sign up×
Community /Pin to ProfileBookmark

Beginner MySQL Problem

I’m trying to teach myself MySQL and I having trouble because the books that I have assume that I’m working on the server, when in actuality I am working from a remote site. I’m trying to figure out how to get things started working from DOS mode (Command Prompt). I’m totally lost! The books say that I should be on a place where it says:

mysql>

But have:

C:Documents and SettingsMy Name>

How do I get started?

BTW, I’m working with Windows XP.

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJun 07.2005 — Type...
<i>
</i>mysql -u username -p

...then enter the password when prompted. For "username" type "root" or other desired database user name you have established.
Copy linkTweet thisAlerts:
@maffmommieauthorJun 08.2005 — That didn't work.
Copy linkTweet thisAlerts:
@fyanymJun 08.2005 — try this:

cd c:mysqlbin

mysql -u root;

//if hvnt hv database then create database

create database dbname;

//if already have database then use database

use dbname;
Copy linkTweet thisAlerts:
@maffmommieauthorJun 08.2005 — yeah...that didn't work either
Copy linkTweet thisAlerts:
@BeachSideJun 08.2005 — Where is the mysql directory? You need to find that then run NogDogs command. Also if you are working with XP Pro I recommend getting SQLyog [URL=http://www.webyog.com/]here[/URL] and trying that out (the free version of course :p )
×

Success!

Help @maffmommie spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...