Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
adc56dfb
Commit
adc56dfb
authored
Jan 28, 2014
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to mysqli
parent
fedbc59d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
qa-config-example.php
qa-config-example.php
+9
-4
qa-db.php
qa-include/qa-db.php
+0
-0
No files found.
qa-config-example.php
View file @
adc56dfb
...
@@ -28,9 +28,14 @@
...
@@ -28,9 +28,14 @@
======================================================================
======================================================================
THE 4 DEFINITIONS BELOW ARE REQUIRED AND MUST BE SET BEFORE USING!
THE 4 DEFINITIONS BELOW ARE REQUIRED AND MUST BE SET BEFORE USING!
======================================================================
======================================================================
For QA_MYSQL_HOSTNAME, try '127.0.0.1' or 'localhost' if MySQL is on the same server.
For persistent connections, set the QA_PERSISTENT_CONN_DB at the bottom of this file; do NOT
prepend the hostname with 'p:'.
*/
*/
define
(
'QA_MYSQL_HOSTNAME'
,
'127.0.0.1'
);
// try '127.0.0.1' or 'localhost' if MySQL on same server
define
(
'QA_MYSQL_HOSTNAME'
,
'127.0.0.1'
);
define
(
'QA_MYSQL_USERNAME'
,
'your-mysql-username'
);
define
(
'QA_MYSQL_USERNAME'
,
'your-mysql-username'
);
define
(
'QA_MYSQL_PASSWORD'
,
'your-mysql-password'
);
define
(
'QA_MYSQL_PASSWORD'
,
'your-mysql-password'
);
define
(
'QA_MYSQL_DATABASE'
,
'your-mysql-db-name'
);
define
(
'QA_MYSQL_DATABASE'
,
'your-mysql-db-name'
);
...
@@ -151,9 +156,9 @@
...
@@ -151,9 +156,9 @@
create significant latency. This will minimize the number of database queries as much as
create significant latency. This will minimize the number of database queries as much as
is possible, even at the cost of significant additional processing at each end.
is possible, even at the cost of significant additional processing at each end.
Set QA_PERSISTENT_CONN_DB to true to use persistent database connections.
Only use this if
Set QA_PERSISTENT_CONN_DB to true to use persistent database connections.
Requires PHP 5.3.
you are absolutely sure it is a good idea under your setup - generally it is not.
Only use this if you are absolutely sure it is a good idea under your setup - generally it is
For more information: http://www.php.net/manual/en/features.persistent-connections.php
not.
For more information: http://www.php.net/manual/en/features.persistent-connections.php
Set QA_DEBUG_PERFORMANCE to true to show detailed performance profiling information at the
Set QA_DEBUG_PERFORMANCE to true to show detailed performance profiling information at the
bottom of every Question2Answer page.
bottom of every Question2Answer page.
...
...
qa-include/qa-db.php
View file @
adc56dfb
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment