Browse code

- sql:// changed to mysql:// in all modules

Jan Janak authored on 03/11/2003 13:03:56
Showing 13 changed files
... ...
@@ -180,8 +180,8 @@
180 180
 /* maximum path length */
181 181
 #define PATH_MAX_GUESS	1024
182 182
 
183
-#define DEFAULT_DB_URL "sql://ser:heslo@localhost/ser"
184
-#define DEFAULT_RODB_URL "sql://serro:47serro11@localhost/ser"
183
+#define DEFAULT_DB_URL "mysql://ser:heslo@localhost/ser"
184
+#define DEFAULT_RODB_URL "mysql://serro:47serro11@localhost/ser"
185 185
 
186 186
 
187 187
 #endif
... ...
@@ -360,7 +360,7 @@ function is called.
360 360
 
361 361
 The function takes one parameter, the parameter must contain database 
362 362
 connection URL. The URL is of the form 
363
-sql://username:password@host:port/database where:
363
+mysql://username:password@host:port/database where:
364 364
 
365 365
 username: Username to use when logging into database (optional).
366 366
 password: password if it was set (optional)
... ...
@@ -31,7 +31,7 @@
31 31
 #include "../../db/db.h"
32 32
 
33 33
 
34
-#define DB_URL   "sql://root@localhost/ser"
34
+#define DB_URL   "mysql://root@localhost/ser"
35 35
 #define DB_TABLE "location"
36 36
 
37 37
 #define TRUE 1
... ...
@@ -188,7 +188,7 @@ struct module_exports* mod_register()
188 188
 	     /*
189 189
 	      * Create a database connection
190 190
 	      * DB_URL is database URL of form
191
-	      * sql://user:password@host:port/database
191
+	      * mysql://user:password@host:port/database
192 192
 	      * The function returns handle, that
193 193
 	      * represents a database connection
194 194
 	      */
... ...
@@ -4634,7 +4634,7 @@ int n = RES_ROW_N(res);
4634 4634
 		<para>
4635 4635
 		    The function takes one parameter, the parameter must contain database 
4636 4636
 		    connection <acronym>URL</acronym>. The <acronym>URL</acronym> is of the form 
4637
-		    sql://username:password@host:port/database where:
4637
+		    mysql://username:password@host:port/database where:
4638 4638
 		    <itemizedlist>
4639 4639
 			<listitem>
4640 4640
 			    <para>
... ...
@@ -5048,13 +5048,13 @@ int n = RES_ROW_N(res);
5048 5048
 		    <listitem>
5049 5049
 			<para>
5050 5050
 			    <varname>db_url</varname> - Database url string in form
5051
-			    <quote>sql://&lt;user&gt;:&lt;pass&gt;@host/database</quote>.
5051
+			    <quote>mysql://&lt;user&gt;:&lt;pass&gt;@host/database</quote>.
5052 5052
 			</para>
5053 5053
 			<para>
5054 5054
 			    Type: <type>string</type>
5055 5055
 			</para>
5056 5056
 			<para>
5057
-			    Default: <quote>sql://serro:47serro11@localhost/ser</quote>
5057
+			    Default: <quote>mysql://serro:47serro11@localhost/ser</quote>
5058 5058
 			</para>
5059 5059
 		    </listitem>
5060 5060
 
... ...
@@ -6561,7 +6561,7 @@ if (t_newtran()) {
6561 6561
 			    Type: <type>string</type>
6562 6562
 			</para>
6563 6563
 			<para>
6564
-			    Default: <quote>sql://ser:heslo@localhost/ser</quote>
6564
+			    Default: <quote>mysql://ser:heslo@localhost/ser</quote>
6565 6565
 			</para>
6566 6566
 		    </listitem>				
6567 6567
 
... ...
@@ -1088,7 +1088,7 @@ loadmodule "modules/auth/auth.so"
1088 1088
 # ------------------ module parameters -------------------------------
1089 1089
 # tell the auth module the access data for SQL database:
1090 1090
 # username, password, hostname and database name
1091
-modparam("auth", "db_url","sql://ser:secret@dbhost/ser")
1091
+modparam("auth", "db_url","mysql://ser:secret@dbhost/ser")
1092 1092
 
1093 1093
 
1094 1094
 # -------------------------  request routing logic -------------------
... ...
@@ -679,7 +679,7 @@ loadmodule "modules/usrloc/usrloc.so"
679 679
 # flushed to mysql
680 680
 modparam("usrloc", "db_mode",   1)
681 681
 # the SQL address:
682
-modparam("usrloc", "db_url","sql://ser:secret@dbhost/ser")
682
+modparam("usrloc", "db_url","mysql://ser:secret@dbhost/ser")
683 683
 			    </programlisting>
684 684
 			</para>
685 685
 	    </section> <!-- user aliases -->
... ...
@@ -52,7 +52,7 @@ modparam("pike","reqs_density_per_unit",5)
52 52
 modparam("pike","removel_latency",30)
53 53
 
54 54
 # -- jabber params --
55
-modparam("jabber","db_url","sql://s2jgw:47s2jgw11@127.0.0.1/sip_jab")
55
+modparam("jabber","db_url","mysql://s2jgw:47s2jgw11@127.0.0.1/sip_jab")
56 56
 modparam("jabber","jaddress","bat.iptel.org")
57 57
 modparam("jabber","jport",5222)
58 58
 modparam("jabber","workers",2)
... ...
@@ -37,7 +37,7 @@ modparam("usrloc", "db_mode", 0)
37 37
 
38 38
 # -- msilo params --
39 39
 
40
-modparam("msilo","db_url","sql://user:xxx@127.0.0.1/msilo")
40
+modparam("msilo","db_url","mysql://user:xxx@127.0.0.1/msilo")
41 41
 modparam("msilo","registrar","sip:registrar@mydomain.com")
42 42
 
43 43
 # -- tm params --
... ...
@@ -20,7 +20,7 @@ loadmodule "modules/uri/uri.so"
20 20
 
21 21
 # ----------------- setting module-specific parameters ---------------
22 22
 
23
-modparam("auth_db", "db_url","sql://ser:heslo@localhost/ser")
23
+modparam("auth_db", "db_url","mysql://ser:heslo@localhost/ser")
24 24
 modparam("auth_db", "calculate_ha1", yes)
25 25
 modparam("auth_db", "password_column", "password")
26 26
 
... ...
@@ -19,7 +19,7 @@ loadmodule "modules/registrar/registrar.so"
19 19
 modparam("tm", "fr_inv_timer", 90)
20 20
 
21 21
 # database with user group membership
22
-modparam("group", "db_url", "sql://ser:heslo@localhost/ser")
22
+modparam("group", "db_url", "mysql://ser:heslo@localhost/ser")
23 23
 
24 24
 
25 25
 # ---------------------  request routing logic -------------------
... ...
@@ -31,7 +31,7 @@ loadmodule "/home/srouter/sip_router/modules/vm/vm.so"
31 31
 	    
32 32
 # ----------------- setting module-specific parameters ---------------
33 33
 
34
-modparam("voicemail", "db_url","sql://ser:heslo@dbhost/ser")
34
+modparam("voicemail", "db_url","mysql://ser:heslo@dbhost/ser")
35 35
 
36 36
 # -------------------------  request routing logic -------------------
37 37
 
... ...
@@ -38,7 +38,7 @@ loadmodule "modules/exec/exec.so"
38 38
 # -- usrloc params --
39 39
 
40 40
 modparam("usrloc", "db_mode",   2)
41
-modparam("usrloc", "db_url", "sql://ser:heslo@192.168.2.16/ser" )
41
+modparam("usrloc", "db_url", "mysql://ser:heslo@192.168.2.16/ser" )
42 42
 # -------------------------  request routing logic -------------------
43 43
 
44 44
 # main routing logic
... ...
@@ -19,7 +19,7 @@
19 19
 # SER_GWIP -- IP address of PSTN gateway, e.g. 10.0.0.1
20 20
 
21 21
 # parameters that are typically not changed
22
-SER_SQL_URI="sql://ser:heslo@localhost/ser"
22
+SER_SQL_URI="mysql://ser:heslo@localhost/ser"
23 23
 # set LIB_PATH if all modules are installed in a single
24 24
 # directory; otherwise, modules are sought in 'modules'
25 25
 # subdirectories