summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-08-15 01:45:38 -0400
committerAdam <Adam@anope.org>2010-08-15 01:45:38 -0400
commita950ed8cabfeca55c909f02412b1788bd386dcff (patch)
treecfa9a16c2385176490ea849f6a4041ee9456c8eb /src/bin
parent4d0a1aaabd861bb7cd1e378bd1e600af1d34d5d2 (diff)
Rewrote the MySQL API to use threads. This acts similar to before, but is faster. Removed db_mysql_execute for now.
Diffstat (limited to 'src/bin')
-rwxr-xr-xsrc/bin/mydbgen5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/mydbgen b/src/bin/mydbgen
index 69e1b8812..f5663ab61 100755
--- a/src/bin/mydbgen
+++ b/src/bin/mydbgen
@@ -5,7 +5,7 @@
DBSQL="tables.sql"
# Schema Version
-SVER="1"
+SVER="2"
# Local Version, defaults to 0
LVER="0"
@@ -132,6 +132,9 @@ rm -f $TFILE
if test "x$FAILED" = "x" ; then
# Try to find out more about this installation
SQLPORT="$(mysql_config --port 2> /dev/null)"
+ if test "$SQLPORT" = "0" ; then
+ SQLPORT=3306
+ fi
echo ""
echo "Your MySQL setup is complete and your Anope schema is up to date. Make"
echo "sure you configure MySQL on your services.conf file prior to launching"