mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
mysql: add charset option (defaults as-is to old UTF8)
This commit is contained in:
@@ -24,6 +24,10 @@
|
||||
<label for="node-config-input-tz"><i class="fa fa-clock-o"></i> Timezone</label>
|
||||
<input type="text" id="node-config-input-tz">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-config-input-charset"><i class="fa fa-language"></i> Charset</label>
|
||||
<input type="text" id="node-config-input-charset">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-config-input-name"><i class="fa fa-tag"></i> Name</label>
|
||||
<input type="text" id="node-config-input-name" placeholder="Name">
|
||||
@@ -37,10 +41,9 @@
|
||||
name: {value:""},
|
||||
host: {value:"127.0.0.1",required:true},
|
||||
port: {value:"3306",required:true},
|
||||
//user: {value:"",required:true},
|
||||
//pass: {value:"",required:true},
|
||||
db: {value:"",required:true},
|
||||
tz: {value:""}
|
||||
tz: {value:""},
|
||||
charset: {value:"UTF8"}
|
||||
},
|
||||
credentials: {
|
||||
user: {type: "text"},
|
||||
@@ -52,6 +55,12 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/html" data-help-name="MySQLdatabase">
|
||||
<p>Add the credentials for accessing your database here.</p>
|
||||
<p>Timezone can be set like GMT, EST5EDT, UTC, etc</p>
|
||||
<p>The Charset defaults to the "old" 3 byte Mysql UTF8. If you need support for emojis etc then use UTF8MB4.</p>
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/html" data-template-name="mysql">
|
||||
<div class="form-row">
|
||||
|
Reference in New Issue
Block a user