Mysql user problems [solved]

hey, i have a problem with my mysql, when i try to login from shell, every account works, but when i try to login via php, it just says
Could not connect: Access denied for user 'root'@'localhost' (using password: NO)
but i dont even try to login with root, i tried multiple accounts and this is what i get all time...
Last edited by nst (2009-01-22 18:01:55)

yeah, i have
extension=mysql.so uncommented
mysqlMySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 5.0.75
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient
Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off
this is from phpinfo, as you can see, the module works properly afaik.
now i got rid of it, but i keep getting another error:
Could not connect: Lost connection to MySQL server at 'reading initial communication packet', system error: 111
its kinda funny now, after the 24 hours im installing and configuring this server )

Similar Messages

  • Mediawiki, mysql, php? problems [SOLVED]

    On Sunday my Arch install that is hosted by Slicehost became unresponsive to them so they had to do an emergency reboot. After it came back up my install of mediawiki was (and still is) only returning a blank page (at least in Firefox). After some digging I found out that part of the problem was that mysqld wasn't starting so I managed to get that fixed by commenting out the lines relating to innodb and putting in skip-innodb into my.cnf. But I'm still getting a blank page.
    According to Mediawiki's manual, "A blank white page indicates a PHP error which isn't being printed to the screen." They give two lines to put into LocalSettings.php to force error messages but after doing that I'm still getting a blank page. Changing display_errors in php.ini to ON didn't have any effect.  When I load the wiki in Safari I get the following error: "Got java.io.EOFException (Server closed connection while sending the HTTP header.): http://some_url.com/mediawiki/index.php/Main_Page". I have no idea what this error means and googling java.io.EOFException doesn't bring up anything very helpful. My PHP Test Page indicates that PHP is up and running.
    Any ideas on fixes or where I can find more clues?
    [EDIT]
    Mysql was definitely the root of the problems with Mediawiki. I tried nearly every suggestion listed in the forums for fixing a mysql install that wouldn't start but nothing worked. I even completely uninstalled mysql and reinstalled it but it still refused to start. I switched over to postgresql and switched mediawiki to run with that. Problem solved.
    Last edited by k_odoma (2009-05-23 01:48:35)

    There are some other things that must be done to connect to
    the database
    (such as passing the usernamee, password, and host info to
    mysql_connect()
    and storing the connection resource), and those might be in
    the include
    files. I generally place all of the connection parameters in
    a separate file
    that is located in a folder that can't be accessed by a
    browser, for
    security purposes.
    Paul Swanson
    Portland, Oregon, USA
    "Amy Blankenship *AdobeCommunityExpert*"
    <[email protected]>
    wrote in message news:edk6ui$69c$[email protected]..
    > What's in the include(s)?
    >
    > "83Dons" <[email protected]> wrote in
    message
    > news:edk5s5$4uk$[email protected]..
    > > Here is the php code for the 'read' and 'write'
    parts:
    > >
    > >
    > >
    > > <?php
    > > include '......';
    > > mysql_select_db('clinskills') or die("UNABLE TO
    CONNECT TO
    DATABASE");
    > > $sql = "select A1Answer from authorware where id =
    '13'";
    > > $result = mysql_query($sql);
    > > $answer1 = mysql_result($result,0,"A1Answer");
    > > print $answer1;
    > > ?>
    > >
    > > <?php
    > > include '............';
    > > mysql_select_db('clinskills') or die("UNABLE TO
    CONNECT TO
    DATABASE");
    > > $newdata = $_GET['data'];
    > > mysql_query("insert into authorware (A1Answer)
    values('$newdata')")
    or
    > > die(mysql_error());
    > > mysql_close(); ?>
    > >
    >
    >

  • Nixed my mysql user, heh heh [SOLVED]

    As noted in a previous post, I inadvertently deleted several system files, and I thereby lost my mysql user, so now the daemon can't start.
    I made a user "mysql" but it didn't help.
    Should I run mysql_secure_installation and first backup my config files? I did change those files a bit.
    Thank you.
    Last edited by CaptainKirk (2013-04-17 15:37:01)

    Ask the allknowing wiki https://wiki.archlinux.org/index.php/De … D_Database

  • PHP and MySQL Connection problem

    I am trying to make a PHP MySQL on a remote server connection in Dreamwesaver CS3.
    When I enter the information (host, user, password, etc.) and hit TEST, I get the following error message.
    "Access Denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the server is properly configured."
    I know the user, password, etc. work, as I can access the MySQL database with other software.
    I checked with my host and they say there are no permission problems on their end.
    I have checked the settings on the Test Server page in Site Setup and everything looks correct and works there.
    I have not seen this particular problem described in other forum postings (although there are a LOT of postings on this topic!).
    Any help would be appreciated.

    I thought my testing server was the remote server and is always on as far as I know. I don't know how to turn it on or off.
    Is there some other testing server that I should be aware of?
    Frank
    Date: Wed, 3 Jun 2009 15:43:02 -0600
    From: [email protected]
    To: [email protected]
    Subject: PHP and MySQL Connection problem
    I know you are using remote, but is your testing server on? if not turn that on and see if that does it. it just happened to me working on remote server and could not get mysql conn to work, until I turn on my testing (developer server), then I was able to connect to mysql and the tables that I created in phpmyadmin remotly was downloaded.
    >

  • JDBC/MYSQL Connection problems

    I'm new to using JDBC so I'm not sure if I'm simply doing something wrong in my code or if I've installed something incorrectly. I've got the JDBC connector/J installed properly as far as I can tell. At least when I run my code I'm not getting an error about the driver not being found. The problem I'm running into is that even though I've double and triple checked the authentication info I keep getting the following error:
    Exception in thread "main" java.sql.SQLException: Invalid authorization specification message from server: "Access denied for user: '[email protected]' (Using password: YES)"
    The actual connection commands I'm using are as follows:
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    Connection con = DriverManager.getConnection("jdbc:mysql://localhost/Test", "testusr", "testpwd");
    I've checked and rechecked the spelling of my mySQL user & password and as far as I can tell, they work just fine so I can't figure out why I would be getting this error. Any suggestions on things I can try or does anyone see any obvious errors in what I'm doing?

    The failure is caused not by the JDBC driver but by how the MySQL was configured
    when it was installed. By default, MySQL is configured to allow connections that
    are created only from within the localhost.
    The line
    DriverManager.getConnection("jdbc:mysql://localhost:3306/Test?user=testusr& password=testpwd") translates to "create a connection to MySQL running at 'localhost' and use the
    'testusr@<hostname.domain>' as user name and 'testpwd' as the password".
    If you can see, the <hostname.domain> is replaced with "other value" aside from
    the "localhost" which you expect, hence connection is denied.
    The '<hostname.domain>' is replaced with the value of either your IP address or
    hostname. Therefore, any connections created from outside the host where your
    server is running will be denied. Now, making the 'host' value set from
    'localhost' to '%' would tell MySQL that you are allowing connections created from
    outside the MySQL host to connect to the server.
    Another way to go around this is problem is to modify your
    "\Windows\system32\drivers\etc\hosts" OR "/etc/hosts" file and give
    your loopback address (127.0.0.1) another alias (aside from localhost), e.g.:
    127.0.0.1    localhost    <hostnameY.domain>
    192.168.1.1  <hostnameX.domain>  <hostnameY.domain>where you replace <hostnameY.domain> with the name/alias of your computer in
    the network. The domain is optional and depends upon the domain name that
    your network is using.

  • Bug fix for Mac book wireless - problem solved!

    Aparantly there is a rather large number of folks out there who've discovered this dillema with wireless not working very well at this point on the Macbook.
    Well, I can attest there is one very good solution out there for this issue. This application called Sonar Theater from www.sunray.tv includes a bug fix for the wireless connection issues with Macbook in their latest 1.5 release of Sonar Theater.
    I downloaded it, put it into my start up folder and waalaa! problem solved. I've haven't any more issues with dropped wireless since - it's been running constantly for over 2 weeks now.
    I haven't even attempted to touch my router configuration - don't need to.

    Welcome to the better life of Macs. I am using Sonar Theater too and it's been working very well for me. In fact, I'm getting hooked on just texting a message to my Mac book to fire up user sessions now. I think if you give the Mac Book some time however, you'll find that there really is no comparison to PC's. Your life overall is going to just keep getting better as you dig in to the resources available to new Mac users.
    I'm sure it seems confusing to PC users at first, but here's how to set up any application as part of your startup sequence. It really is extremely easy and simple compared to the PC world. Oh and by the way, in reality, Mac users refer to this as your login sequence. So, at login time, you can do a multitude of different things for each user account you might want to set up. Naturally, you can choose to share or not share applications and data between these user accounts on your Mac too....
    Mac OS X 10.3 or later
    1. Log in as the user who wishes to have a login item or as an admin user.
    2. Choose System Preferences from the Apple menu.
    3. Choose Accounts from the View menu.
    4. Click the name of the user.
    5. Click the Startup Items button
    6. Click the "Add {+}" button.
    The item you selected will automatically open the next time you log in.
    there are several ways to get good info from the apple community on tips and tricks as well. you should just try the apple os x web site...here,
    http://www.apple.com/macosx/resources/
    happy mac-ing!

  • Mail & Adress Book: issues sending group mail - Problem solved

    I started writing this discussion because I could not get something to work. As I wrote it, I made many tests to confirm what I was writing and also read several past discussions on the subject. I ended up solving my problem and decided to share my findings. Hope it is useful to other people.
    EMAIL TO A GROUP WITH ALL RECIEPIENTS SHOWING IN THE «TO» HEADER - My problem solved
    SENDING FROM THE MAIL APPLICATION:
    To start do the following:  Mail/Preferences/Composing  check «Show members of a group»
    Then for a group name with two or more words OR wit a one word group name, start writing the group name in the «TO» header of an email wait until the « () » appears highlithed in a color as you slowly write the Address Book group name and then select the group name from the scroling list appearing below which comes from your Adress Book (whether it's open or not). If you choose in a selection list before the « () » appears as you type, you could end up with an empty list and the group email does not work. When the « () » does not yet appear but the group name does below, it most likely will not work but if you scroll down you may find a second one that will.  The whole thing is wear but once you get the hang of it you make it work everytime.
    SENDING FROM THE ADDRESS BOOK APPLICATION:
    If you try to send the email to a group from the application ADRESS BOOK by pressing «ctrl» & right clicking the name of the group and select «Send an email to GROUP-NAME», it will work also. But the group name must not have a space before its name in the Address Book (one could decide to do this to have a group to appear at the top of a list of groups). The latter was my problem and sending from the address book application did not work.
    EMAIL TO A GROUP WITH «UNDISCLOSED RECIPIENTS» SHOWING IN THE «TO» HEADER  - My problem solved
    First one has to uncheck the «Show members of a group» in Mail/Preferences/Composing
    Second strat a new email and proceed as described above in «1.»  in the second and third paragraph.
    As suggested in one discussion, if you still can not get it to work try closing your Mail and Address Book applications and re-open them.
    As suggeted in another discussion by Ernie Stamper on May 15 2009 in the «Can't send an email to a group»:
    «In Mail Preferences/Composing, select to Show members of a group, and then compose a message (no need to send for this test) using the group address -- do the 9 addresses show in the message header? If so, then report the name of the provider of the SMTP you are using. It might be that they do not allow the Group in the To -- when working correctly, the recipient sees only Undesignated Recipients in the header.»
    I'm using Mac OS X 10.7.5 and Mail 5.3 (1283) on an iMac 2009
    Can't send an email to a group.

    Hi Priyanka,
    I can't get it working. I get this error:
    2007/03/25 17:23:00] Error in evaluate <from> expression at line "98". The result is empty for the XPath expression : "ids:getUserProperty('esbMailTo', 'mail', 'jazn.com')".
    [2007/03/25 17:23:00] "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.less
    - <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    - <part name="summary">
    <summary>
    empty variable/expression result.
    xpath variable/expression expression "ids:getUserProperty('esbMailTo', 'mail', 'jazn.com')" is empty at line 98, when attempting reading/copying it.
    Please make sure the variable/expression result "ids:getUserProperty('esbMailTo', 'mail', 'jazn.com')" is not empty.
    </summary>
    </part
    In users-properties.xml I have this:
    <userObject>
         <name>esbMailTo</name>
            <description>MailTo</description>
         <mail>[email protected]</mail>           
         <title>Loan Agent 1</title>
         <firstName>James</firstName>
         <lastName>Cooper</lastName>
         <manager>jstein</manager>
            <timeZone>America/Los_Angeles</timeZone>
         <languagePreference>en-US</languagePreference>
         <notificationPreferences>Mail</notificationPreferences>
         </userObject> Any ideas?
    Regards Pete

  • [Problem Solved] On screen display not working on T60

    I replace my xp with a Vista Business.
    All the drivers are installed. But the on screen display is not working well. Nothing display when I press the volume up/down/mute button. However, other buttons like Fn+F3, Fn+F5 do display on screen.
    Anyone  knows how to solve this?
    Thanks a lot. 
    Message Edited by szsy on 10-02-2008 08:11 PM
    Solved!
    Go to Solution.

    problem solved.
    looks like I need to install a  Lenovo System Interface Driver. This is just for ATI graphic card users and nVidia users don't need it.
    Thanks a lot. 

  • I can not write in Hebrew And create effects It shows all distorted  When This problem solved?

    I can not write in Hebrew
    And create effects
    It shows all distorted
    When This problem solved?

    roeisarusi wrote:
    When This problem solved?
    Nobody knows.  iWorks apps have always had bugs that make them unsuitable for Hebrew/Arabic for most people.  Tell Apple here:
    http://www.apple.com/feedback/keynote.html

  • How to problem solve adf issue in the mx340 model

    how to problem solve adf issue in the mx340 model

    Alex,
    the missing thing in your example is the fact, that if only one value is selected, the parameter has exact this value like BOSTON. If you choose more than one value, the parameter includes the *'*, so that it looks like *'BOSTON','NEW YORK'*. So you need to check in the package, if there's a *,* in the parameter or not. If yes there's more than one value, if not it's only one value or it's null.
    So change your package to (you need to expand your variables)
    create or replace package bip_departments_2_parameters
    as
    p_dep_2_param varchar2(1000);
    p_loc_1_param varchar2(1000);
    p_where_clause varchar2(1000);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    create or replace package body bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    p_where_clause := ' ';
    if p_dep_2_param is not null then
    if instr(p_dep_2_param,',')>0 then
    p_where_clause := 'WHERE DNAME in ('||p_dep_2_param||')';
    else
    p_where_clause := 'WHERE DNAME = '''||p_dep_2_param||'''';
    end if;
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || ' AND LOC IN ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || ' AND LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    else
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || 'WHERE LOC in ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || 'WHERE LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    I've written a similar example at http://www.oracle.com/global/de/community/bip/tipps/Dynamische_Queries/index.html ... but it's in german.
    Regards
    Rainer

  • 'Unknown user' problem in Guest account

    Hello.
    Remember the unknown user problem in the Finder that plagued everyone that upgraded from Tiger? Thanks to someone on these boards' AppleScript, I managed to fix that for my account eventually and get it changed to staff for every file and folder.
    However, I just checked out my Guest account in Leopard, and when I do a Get Info on the home folder, the public folder and the sites folder, the unknown user still appears.
    What do I need to do to fix this?
    Would reinstalling Leopard sort it out by the way? I don't want to do it because it would create countless hassles, but is there a way of reinstalling Leopard that lets me keep my own home folder and applications while killing all the permissions problems?

    Does it properly refuse authentication ? Or does the login page stop appearing or something ?
    There was a bug with the webauth dying under heavy load, regardless of number of identical accounts used.
    One good way for you to check would be, when problem occurs, to create a second backup guest user and see if that would start working. If it doesn't, the account is not the problem.
    I'm not aware of any maximum of usage of the same account.
    Which 4.2 exactly are you running ?

  • WiFi connection problem solved

    My intel iMac and MBA had no problem but iPods 3g and 5g did.  I had an old Netgear router connected and sitting next to my Airport Express.  On a hunch I diconnected the Netgear and created a guest network to replace the one on the Netgear.  PROBLEM SOLVED! 
    Evidently our iPods and boarder's iPhone had problems sorting out the signals and finding the right addresses.  Moving the AE to a higher and slightly more central position also helped.
    Jim

    Same here on a Vodafone PocketWiFi 2.
    Tried NetworkManager, wicd, wifi-menu but all have the same issue.
    I recently installed Aptosid on another machine and it has the same problem... It also has kernel version 3.9.
    All the live CDs I've tried work, even an Arch CD from May works, though a current install does not.
    I have no problems connecting to another (wpa2 enterprise) network yet can't on this 3G modem.
    I'm hoping this isn't a permanent issue and perhaps an update very soon will fix this.
    It seems the only way to fix this for now is to use an old version of Linux. I'm currently running a virtual machine only for the purpose of Internet sharing, very annoying.

  • End Users Problems

    Hi Experts:
    If any one can answer that after implimentation of SAP, what are the most frequent problems whihc End User suffers from??
    Thanks
    Rashmi

    if it is for time management
    mostly u will problem related to Absences and absence quotas updation and some time u may get worng reports when u take reports
    End user problems means it depends upon the nature of the functionality which he works
    so check Time Related infotypes functionalities and their configuration issues
    AS TIME IS UNIVERSAL MODULE

  • Acrobat printing problems (solved)

    Hi Folk
    I'm getting on well with Arch apart from one problem, I can not print from Acrobat reader, it accepts the command and does precisely nothing, the jobs are appearing in cups but not being printed, I can print from Open Office and test print from cups but no cooperation with acrobat,  anyone have any ideas? thanks
    Pete
    Last edited by pete051 (2009-09-29 19:14:12)

    I don't know what DE are you using. In my case, I use xfce and when acroread starts with his stupidity I just change the print command to 'xfprint'. That forces acroread to redirect the print job to xfce's printing frontend, and problem solved.
    Now, if you're using kde, I guess there is something named 'kdeprint', 'kprint' or similar. For gnome, I've no idea.
    I hope this helps.
    p.s. Sometimes, cups takes his time to print. When its taking too long I purge cups' temp files and restart the daemon.
    Last edited by kjon (2009-09-25 00:32:23)

  • Stuck with grub problem (SOLVED)

    Today i tried to upgrade my Arch Linux, it downloaded everything that should be downloaded, it was installing upgrades but at the installing grub it stucks as like this
    "Copying /boot/grub/grub.cfg.pacsave to /boot/grub/grub.cfg"
    I've waited it for about 15 minutes, it didn't move on. So i did ctrl+z to break. Then i tried to update again. But it gives an error which is:
    error: failed to commit transaction (conflicting files)
    python: /usr/bin/2to3 exists in filesystem
    Error occured, no packages were upgraded.
    Please help me guys!
    Last edited by bilgee0629 (2011-03-21 10:36:28)

    Problem solved by moving 2to3 to other directory.

Maybe you are looking for

  • Safari is clearing saved usernames on websites

    On my iPad, when I close the Safari app, it logs me out of websites that I was logged into.  This doesn't happen on my iPhone.  Any ideas why this is happening and how I can change it?

  • HELP!!!! My iTunes Library will  not load...

    So, I uninstalled the Safari tool, I never use it. I restarted my computer and now my iTunes library is empty. I try to import the library from my music folder, and I get an error that says "The file iTunes library.itl cannot be imported because it d

  • Creating a virtual system for transport landscape

    Hello We have an isolated system that has transport system set to Local change Requests and would like to transport some of the transports into another system. I found in a thread here that we need to create a virtual system for creating a transport

  • N86 very weak signal reception

    I bought a new n86 a few days ago but I found that the signal recertion is really very very low in some places compared to a nokia n70. At the time an n70 (or many other phones) has 7 bars , an n86 has NO bars (out of network coverage) That's a very

  • Viewing values in hyper terminal

    Hello all,     I am quite new to WSN programming. I have Crossbow and required hardware( micaz motes, mib510 programming board and a serial port cable). Can I view a Hello Message send by mote in the hyper terminal. Please guide me from the very begi