This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Form has stopped connecting to database...


  1. gbilawa
    Member

    Hello,

    I installed a series of forms for a website a few weeks ago and all was well. Anyway, all of a sudden today the forms just completely stopped working.

    I have not touched the database since I set it up so I am not sure what the problem is.

    Here's the error message (disregard the generic mysite stuff)...

    "Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mysite_mysite'@'localhost' (using password: YES) in /home/mysite/public_html/machform/includes/db-core.php on line 11
    Could not connect: Access denied for user 'mysite_mysite'@'localhost' (using password: YES)"

    I checked my My SQL version and I am running 4.1.22.

    I have not changed the database name or my login since I set the forms up.

    My concern at this point is what is going to happen to all my forms if I have to blow away all my everything and start over.

    This would be a major downer.

    Thanks for your help.

    Posted 16 years ago #
  2. yuniar

    According to the error message:

    Access denied for user 'mysite_mysite'@'localhost'

    it looks like your mysql user is having permission problem with the database.

    Try to reset the password again.
    Also, make sure that username is having the correct permission to your database.

    If you are using cPanel, there is a button named "Add User to Database".
    Click that button for that user and make sure to allow ALL PRIVILEGES.


    MachForm Founder

    Posted 16 years ago #
  3. gbilawa
    Member

    Well, that worked but it seems odd to me that the form would just stop connecting spontaneously...

    Anyway, thank you for your help.

    I now have a new problem.

    Each form entry field has a bullet next to it. I haven't touched the form designer or my html, I just reconnected the database. I check my source code for the forms and they don't show any list tags (ordered or unordered) so I am guessing that it is a machform issue. I tried to check the CSS but I am getting an error that says...

    "Warning: file_get_contents(./data/form_1/css/view.css) [function.file-get-contents]: failed to open stream: No such file or directory in /home/mysite/public_html/machform/edit_css.php on line 51"

    If you want, I can PM the URL to you and you can check it out.

    Thanks so much!

    Posted 16 years ago #
  4. yuniar

    Hmm.. I suppose there was some glitch with your mysql database?
    If you need to make sure, I suggest to contact your hosting tech support for this one.

    Regarding the error above, your form seems to be missing its CSS file.
    Try to check the file "/data/form_1/css/view.css"

    Is it there? If not, it must be deleted somehow and you can fix it by manually uploading the CSS file there.

    If it still there, it might be file permission problem. Make sure to set CHMOD 777 to that file.


    MachForm Founder

    Posted 16 years ago #
  5. gbilawa
    Member

    I have no idea what happened with the password, hopefully it is fixed.

    Also, I was able to fix the CSS issue.

    Thanks, wow, great support!

    Posted 16 years ago #
  6. yuniar

    great :-)


    MachForm Founder

    Posted 16 years ago #

RSS feed for this topic

Reply