25 02, 2016

Joomla- Database Error: Unable to connect to the database

2018-01-24T06:42:51+00:00February 25, 2016|Database, Mobile, PHP Frameworks, Salesforce, Web Development, Zoho|0 Comments

|
| ByWebner

While working with Joomla if you get an error - "Database Error: Unable to connect to the database:Could not connect to database”, check following properties in Joomla's configuration.php file : //given values are sample data only. var $dbtype = 'mysql'; [...]

19 02, 2016

Mysql | Forgot root password in Mysql

2016-06-23T11:46:44+00:00February 19, 2016|Database, Mobile, Salesforce, Web Development, Zoho|0 Comments

|
| ByWebner

If you forget mysql root password these are few easy steps to regain access: 1. shell> mysqld_safe --skip-grant-tables 2.Open another terminal shell> mysql -u root -p (hit enter and use blank password) 3. mysql>UPDATE mysql.user SET Password=PASSWORD('NewPassword')WHERE User='root'; 4. mysql>FLUSH [...]

16 02, 2016

Moodle | Call to undefined method mysqli_native_moodle_database :: insert_records()

2018-02-08T09:30:37+00:00February 16, 2016|Database, Mobile, PHP Frameworks, Salesforce, Web Development, Zoho|0 Comments

|
| ByWebner

We were using insert_records() function to insert multiple records in a Moodle database table but it was not working. We checked for errors by adding following lines in config.php file of moodle: @error_reporting(E_ALL | E_STRICT); @ini_set('display_errors', '1'); $CFG->debug = (E_ALL [...]

20 10, 2015

Error Code: 3. Error writing file ‘/tmp/MYMI5iqH’ (Errcode: 28)

2018-01-23T06:12:16+00:00October 20, 2015|Database, Linux, Windows, Mac, Mobile, PHP Frameworks, Salesforce, Web Development, Zoho|0 Comments

|
| ByWebner

Problem Recently in a website we were developing in Codeigniter PHP Framework, some of the urls stopped working and started throwing 500 internal server error. On investigation we found a MySQL query which was causing the problem .Query is simple [...]

7 03, 2015

Connection Pool with Tomcat6 and Mysql

2018-02-08T05:55:00+00:00March 7, 2015|Database, Java Frameworks, Web Development|0 Comments

|
| ByWebner

Inside $tomcat_home/conf/context.xml add this inside <Context> <Resource name=”jdbc/datasourcename” auth=”Container” type=”javax.sql.DataSource” maxActive=”100″ maxIdle=”30″ maxWait=”1000″ username=”dbuser” password=”dbpwd” driverClassName=”com.mysql.jdbc.Driver” url=”jdbc:mysql://localhost:3306/exodus”/> Now restart tomcat Inside you web.xml add this before </web-app>: <resource-ref> <description>My DB Connection</description> <res-ref-name>jdbc/datasourcename</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> Java code to connect: Context [...]

6 03, 2015

ORA-28001: the password has expired

2016-06-23T11:42:43+00:00March 6, 2015|Database|0 Comments

|
| ByWebner

That’s the error you get for oracle user for whom password is expired. One Solution – Connect using sqlplus to set new password, you can even use the same password you had earlier. $ sqlplus SQL*Plus: Release 11.2.0.1.0 Production on [...]

Go to Top