Deploying to gh-pages from @ overextended/oxmysql@90a5895882 🚀

This commit is contained in:
thelindat committed 2021-12-24 17:15:25 +00:00
1 parent 4a11e3ba1f
commit 55d6e6ca79
4 files changed
+16 -16

No files matched your search

+5 -5
View File
@@ -68,7 +68,7 @@
<div data-md-component="skip">
<a href="#unable-to-establish-a-connection-er_access_denied_error" class="md-skip">
<a href="#unable-to-establish-a-connection" class="md-skip">
Skip to content
</a>
@@ -313,8 +313,8 @@
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#unable-to-establish-a-connection-er_access_denied_error" class="md-nav__link">
Unable to establish a connection [ER_ACCESS_DENIED_ERROR]
<a href="#unable-to-establish-a-connection" class="md-nav__link">
Unable to establish a connection
</a>
</li>
@@ -495,11 +495,11 @@
<h1>Common issues</h1>
<h3 id="unable-to-establish-a-connection-er_access_denied_error">Unable to establish a connection [ER_ACCESS_DENIED_ERROR]<a class="headerlink" href="#unable-to-establish-a-connection-er_access_denied_error" title="Permanent link">&para;</a></h3>
<h3 id="unable-to-establish-a-connection">Unable to establish a connection<a class="headerlink" href="#unable-to-establish-a-connection" title="Permanent link">&para;</a></h3>
<p>This is usually the result of incorrect database settings or your password containing reserved characters (typically <code>; , / ? : @ &amp; = + $ #</code>).</p>
<div class="admonition check">
<p class="admonition-title">Solution</p>
<p>Ensure you have entered the correct database settings in the mysql_connection_string convar. You can try using the comma-separated format if your password contains reserved characters.</p>
<p>Ensure you have entered the correct database settings in the mysql_connection_string convar. You can try using the semicolon-separated format if your password contains reserved characters.</p>
</div>
<h3 id="no-such-export-in-resource-oxmysql">No such export ... in resource oxmysql<a class="headerlink" href="#no-such-export-in-resource-oxmysql" title="Permanent link">&para;</a></h3>
<p>Typically the result of failing to follow instructions.</p>
+1 -1
View File
@@ -1 +1 @@
{"config":{"indexing":"full","lang":["en"],"min_search_length":3,"prebuild_index":false,"separator":"[\\s\\-]+"},"docs":[{"location":"","text":"Installation \u00b6 Download the latest build of oxmysql (not the source code). Extract the contents of the archive to your resources folder. Start the resource near the top of your resources in your server.cfg . If you have a lot of streamed assets, load them first to prevent timing out the connection. Configuration \u00b6 You can change the configuration settings by using convars inside your server.cfg . Reference the following for an idea of how to set your connection options. You must include one of the following lines, adjusted for your connection and database settings. set mysql_connection_string \"mysql://root:12345@localhost/es_extended?charset=utf8mb4\" set mysql_connection_string \"user=root;database=es_extended;password=12345;charset=utf8mb4\" Certain special characters are reserved or blocked and may cause issues when used in your password. You can also add the following convars if you require extra information when testing queries. set mysql_slow_query_warning 150 set mysql_debug true For more optional settings (such as multiple statements) you can reference pool.d.ts and connection.d.ts . Benchmark \u00b6 Lua: Low: 0.2167ms | Avg: 0.28788843ms | Total: 2878.8843ms (10000 queries) JS: Low: 0.2098ms | Avg: 0.29384436ms | Total: 2938.4436ms (10000 queries) These benchmarks await the previous response rather than occuring asynchronously, and measure the total time spent executing the export. The MySQL.Sync.prepare function calls exports.oxmysql:execute_async , as used in the JS sample. Lua (5.4) \u00b6 local val = 10000 RegisterCommand ( 'luasync' , function () local queryTimesLocal = {} local result local r = MySQL . Sync . prepare ( 'SELECT identifier from users WHERE lastname = ?' , { 'Linden' }) for i = 1 , val do local time = os . nanotime () local r = MySQL . Sync . prepare ( 'SELECT identifier from users WHERE lastname = ?' , { 'Linden' }) queryTimesLocal [ # queryTimesLocal + 1 ] = ( os . nanotime () - time ) / 1000000 if i == 1 then result = r end end local queryMsLow , queryMsSum = 1000 , 0 for _ , v in pairs ( queryTimesLocal ) do queryMsSum = queryMsSum + v end for _ , v in pairs ( queryTimesLocal ) do if v < queryMsLow then queryMsLow = v end end local averageQueryTime = queryMsSum / # queryTimesLocal print ( json . encode ( result )) print ( 'Low: ' .. queryMsLow .. 'ms | Avg: ' .. averageQueryTime .. 'ms | Total: ' .. queryMsSum .. 'ms (' ..# queryTimesLocal .. ' queries)' ) end ) JavaScript \u00b6 const val = 10000 RegisterCommand ( 'jssync' , async () => { const queryTimesLocal = []; let result for ( let i = 0 ; i < val ; i ++ ) { const startTime = process . hrtime () const r = await exports . oxmysql . execute_async ( 'SELECT identifier from users WHERE lastname = ?' , [ 'Linden' ]) queryTimesLocal . push ( process . hrtime ( startTime )[ 1 ] / 1000000 ) if ( i === 0 ) result = r } const queryMsSum = queryTimesLocal . reduce (( a , b ) => a + b , 0 ) const queryMsLow = queryTimesLocal . sort (( a , b ) => a - b )[ 0 ] const averageQueryTime = queryMsSum / queryTimesLocal . length console . log ( result ) console . log ( 'Low: ' + queryMsLow + 'ms | Avg: ' + averageQueryTime + 'ms | Total: ' + queryMsSum + 'ms (' + queryTimesLocal . length + ' queries)' ) })","title":"Getting Started"},{"location":"#installation","text":"Download the latest build of oxmysql (not the source code). Extract the contents of the archive to your resources folder. Start the resource near the top of your resources in your server.cfg . If you have a lot of streamed assets, load them first to prevent timing out the connection.","title":"Installation"},{"location":"#configuration","text":"You can change the configuration settings by using convars inside your server.cfg . Reference the following for an idea of how to set your connection options. You must include one of the following lines, adjusted for your connection and database settings. set mysql_connection_string \"mysql://root:12345@localhost/es_extended?charset=utf8mb4\" set mysql_connection_string \"user=root;database=es_extended;password=12345;charset=utf8mb4\" Certain special characters are reserved or blocked and may cause issues when used in your password. You can also add the following convars if you require extra information when testing queries. set mysql_slow_query_warning 150 set mysql_debug true For more optional settings (such as multiple statements) you can reference pool.d.ts and connection.d.ts .","title":"Configuration"},{"location":"#benchmark","text":"Lua: Low: 0.2167ms | Avg: 0.28788843ms | Total: 2878.8843ms (10000 queries) JS: Low: 0.2098ms | Avg: 0.29384436ms | Total: 2938.4436ms (10000 queries) These benchmarks await the previous response rather than occuring asynchronously, and measure the total time spent executing the export. The MySQL.Sync.prepare function calls exports.oxmysql:execuLine truncated
{"config":{"indexing":"full","lang":["en"],"min_search_length":3,"prebuild_index":false,"separator":"[\\s\\-]+"},"docs":[{"location":"","text":"Installation \u00b6 Download the latest build of oxmysql (not the source code). Extract the contents of the archive to your resources folder. Start the resource near the top of your resources in your server.cfg . If you have a lot of streamed assets, load them first to prevent timing out the connection. Configuration \u00b6 You can change the configuration settings by using convars inside your server.cfg . Reference the following for an idea of how to set your connection options. You must include one of the following lines, adjusted for your connection and database settings. set mysql_connection_string \"mysql://root:12345@localhost/es_extended?charset=utf8mb4\" set mysql_connection_string \"user=root;database=es_extended;password=12345;charset=utf8mb4\" Certain special characters are reserved or blocked and may cause issues when used in your password. You can also add the following convars if you require extra information when testing queries. set mysql_slow_query_warning 150 set mysql_debug true For more optional settings (such as multiple statements) you can reference pool.d.ts and connection.d.ts . Benchmark \u00b6 Lua: Low: 0.2167ms | Avg: 0.28788843ms | Total: 2878.8843ms (10000 queries) JS: Low: 0.2098ms | Avg: 0.29384436ms | Total: 2938.4436ms (10000 queries) These benchmarks await the previous response rather than occuring asynchronously, and measure the total time spent executing the export. The MySQL.Sync.prepare function calls exports.oxmysql:execute_async , as used in the JS sample. Lua (5.4) \u00b6 local val = 10000 RegisterCommand ( 'luasync' , function () local queryTimesLocal = {} local result local r = MySQL . Sync . prepare ( 'SELECT identifier from users WHERE lastname = ?' , { 'Linden' }) for i = 1 , val do local time = os . nanotime () local r = MySQL . Sync . prepare ( 'SELECT identifier from users WHERE lastname = ?' , { 'Linden' }) queryTimesLocal [ # queryTimesLocal + 1 ] = ( os . nanotime () - time ) / 1000000 if i == 1 then result = r end end local queryMsLow , queryMsSum = 1000 , 0 for _ , v in pairs ( queryTimesLocal ) do queryMsSum = queryMsSum + v end for _ , v in pairs ( queryTimesLocal ) do if v < queryMsLow then queryMsLow = v end end local averageQueryTime = queryMsSum / # queryTimesLocal print ( json . encode ( result )) print ( 'Low: ' .. queryMsLow .. 'ms | Avg: ' .. averageQueryTime .. 'ms | Total: ' .. queryMsSum .. 'ms (' ..# queryTimesLocal .. ' queries)' ) end ) JavaScript \u00b6 const val = 10000 RegisterCommand ( 'jssync' , async () => { const queryTimesLocal = []; let result for ( let i = 0 ; i < val ; i ++ ) { const startTime = process . hrtime () const r = await exports . oxmysql . execute_async ( 'SELECT identifier from users WHERE lastname = ?' , [ 'Linden' ]) queryTimesLocal . push ( process . hrtime ( startTime )[ 1 ] / 1000000 ) if ( i === 0 ) result = r } const queryMsSum = queryTimesLocal . reduce (( a , b ) => a + b , 0 ) const queryMsLow = queryTimesLocal . sort (( a , b ) => a - b )[ 0 ] const averageQueryTime = queryMsSum / queryTimesLocal . length console . log ( result ) console . log ( 'Low: ' + queryMsLow + 'ms | Avg: ' + averageQueryTime + 'ms | Total: ' + queryMsSum + 'ms (' + queryTimesLocal . length + ' queries)' ) })","title":"Getting Started"},{"location":"#installation","text":"Download the latest build of oxmysql (not the source code). Extract the contents of the archive to your resources folder. Start the resource near the top of your resources in your server.cfg . If you have a lot of streamed assets, load them first to prevent timing out the connection.","title":"Installation"},{"location":"#configuration","text":"You can change the configuration settings by using convars inside your server.cfg . Reference the following for an idea of how to set your connection options. You must include one of the following lines, adjusted for your connection and database settings. set mysql_connection_string \"mysql://root:12345@localhost/es_extended?charset=utf8mb4\" set mysql_connection_string \"user=root;database=es_extended;password=12345;charset=utf8mb4\" Certain special characters are reserved or blocked and may cause issues when used in your password. You can also add the following convars if you require extra information when testing queries. set mysql_slow_query_warning 150 set mysql_debug true For more optional settings (such as multiple statements) you can reference pool.d.ts and connection.d.ts .","title":"Configuration"},{"location":"#benchmark","text":"Lua: Low: 0.2167ms | Avg: 0.28788843ms | Total: 2878.8843ms (10000 queries) JS: Low: 0.2098ms | Avg: 0.29384436ms | Total: 2938.4436ms (10000 queries) These benchmarks await the previous response rather than occuring asynchronously, and measure the total time spent executing the export. The MySQL.Sync.prepare function calls exports.oxmysql:execuLine truncated
+10 -10
View File
@@ -2,52 +2,52 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>None</loc>
<lastmod>2021-12-23</lastmod>
<lastmod>2021-12-24</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2021-12-23</lastmod>
<lastmod>2021-12-24</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2021-12-23</lastmod>
<lastmod>2021-12-24</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2021-12-23</lastmod>
<lastmod>2021-12-24</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2021-12-23</lastmod>
<lastmod>2021-12-24</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2021-12-23</lastmod>
<lastmod>2021-12-24</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2021-12-23</lastmod>
<lastmod>2021-12-24</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2021-12-23</lastmod>
<lastmod>2021-12-24</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2021-12-23</lastmod>
<lastmod>2021-12-24</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2021-12-23</lastmod>
<lastmod>2021-12-24</lastmod>
<changefreq>daily</changefreq>
</url>
</urlset>
BIN
View File
Binary file not shown.