Git Product home page Git Product logo

Comments (7)

cazzerson avatar cazzerson commented on June 28, 2024

This really looks like a MySQL permissions issue. Are you able to connect to the suma database using the suma_application username and the password you've specified in the suma server config file using a MySQL client (either on the command line, or a GUI application)? Is it possible that you've created the account, but not granted the privileges for access from localhost?

from suma.

gallob75 avatar gallob75 commented on June 28, 2024

I have done all of this in phpmyadmin. The suma_application user exists in the user table, and I see that it has privileges for the suma database specifically. Also, the host is set to %, which I understand to be any host, including localhost. Is there anything I might still be missing?

from suma.

cazzerson avatar cazzerson commented on June 28, 2024

Let me think about this, but for now let's try the following two ideas:

  1. Please double-check the username and password in the Suma config.ini file.
  2. Change the host for the suma_application user to localhost (assuming that the MySQL server and the Suma server are on the same server). There is no need to open access to this account to the world, and there are some cases where wildcard hosts can cause issues in MySQL:

It is necessary to have both accounts for monty to be able to connect from anywhere as monty. Without the localhost account, the anonymous-user account for localhost that is created by mysql_install_db would take precedence when monty connects from the local host. As a result, monty would be treated as an anonymous user. The reason for this is that the anonymous-user account has a more specific Host column value than the 'monty'@'%' account and thus comes earlier in the user table sort order.

http://dev.mysql.com/doc/refman/5.6/en/adding-users.html

from suma.

gallob75 avatar gallob75 commented on June 28, 2024

Changing the host to localhost brought up some different errors:

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1049] Unknown database 'sumadev'' in C:\wamp\www\app\sumaserver\lib\zend\library\Zend\Db\Adapter\Pdo\Abstract.php on line 144
PDOException: SQLSTATE[HY000] [1049] Unknown database 'sumadev' in C:\wamp\www\app\sumaserver\lib\zend\library\Zend\Db\Adapter\Pdo\Abstract.php on line 129
Zend_Db_Adapter_Exception: SQLSTATE[HY000] [1049] Unknown database 'sumadev' in C:\wamp\www\app\sumaserver\lib\zend\library\Zend\Db\Adapter\Pdo\Abstract.php on line 144

from suma.

cazzerson avatar cazzerson commented on June 28, 2024

Are you sure the sumadev database has been created and the suma_application user has access to it?

from suma.

gallob75 avatar gallob75 commented on June 28, 2024

Ah, that might be it. I named it just suma, not sumadev.

from suma.

gallob75 avatar gallob75 commented on June 28, 2024

Yes, that was it. I renamed it and am able to access Edit Locations. Thanks again, cazzerson! I appreciate it.

from suma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.