Results 1 to 2 of 2

Thread: Trying to install LAMP

  1. #1
    Join Date
    Jul 2013

    Trying to install LAMP

    I'm trying to set up a Final Fantasy XI private server....and a prerequisite is of course LAMP
    (FFXI private server guide here: )

    so im following a tutorial on how to set LAMP up ( ) and i get all the way to the "Step 3. This is where things may start to get tricky. Begin by typing the following into Terminal: " under the MySQL instructions and type the instructed command

    mysql -u root
    and i get the following readout

     user@user-HP-2000-Notebook-PC:~$ mysql -u rootERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
    If i use sudo i get:
    user@user-HP-2000-Notebook-PC:~$ sudo mysql -u root
    [sudo] password for user: 
    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

    how do i go about making the mysql -u root work? what am i missing here?

    nvm.....i didnt see any thing until i scrolled to the bottom and there was a link for people with error 1045:
    havent had much rest....perhaps its time.....if i have further issues with LAMP i will post back in this thread.....sorry if i wasted your time reading this... /facepalm
    Last edited by korn16ftl3; July 20th, 2013 at 03:12 PM.

  2. #2
    Join Date
    Apr 2008
    Ubuntu Development Release

    Re: Trying to install LAMP

    Your missing the -p switch from the mysql command that prompts for your password. Try this...
    mysql -u root -p
    The tutorial you are following is 6 years old which is why the commands in it aren't working. You don't need to run the 'SET PASSWORD' command as you will have already been prompted for a mysql root password when it was installed.

    In fact the entirety of the tutorial can now be accomplished with one command...
    sudo apt-get install lamp-server^
    Last edited by Cheesemill; July 20th, 2013 at 07:34 PM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts