but what is then my hostname to connect to my pi from windows with MYSQL Workbench,Sorry but I am a little bit confussed at the moment
Edit:
I have no clue why I did not get any connection…I did step by step your tutorial…
System: Openhabianpi with latest 2.2 Snapshot
2017-11-27 00:34:12.839 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Could not store item 'Date' in database with statement 'INSERT INTO Item19 (TIME, VALUE) VALUES(?,?) ON DUPLICATE KEY UPDATE VALUE=?;': No operations allowed after connection closed.
2017-11-27 00:34:12.846 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Connection is not valid!
2017-11-27 00:34:12.850 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Connection is not valid!
2017-11-27 00:34:12.857 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Could not store item 'Current_DateTime' in database with statement 'INSERT INTO Item18 (TIME, VALUE) VALUES(?,?) ON DUPLICATE KEY UPDATE VALUE=?;': No operations allowed after connection closed.
2017-11-27 00:54:53.346 [DEBUG] [hread.strategy.ExecuteProduceConsume] - EPC Prod/org.eclipse.jetty.io.ManagedSelector$SelectorProducer@1853c9e ran SelectChannelEndPoint@338e9e{/192.177.77.1:80<->51938,Open,in,out,FI,-,25/0,HttpConnectionOverHTTP@150cbd0}{io=1/1,kio=1,kro=1}:runFillable
2017-11-27 00:54:53.339 [DEBUG] [org.eclipse.jetty.server.HttpChannel] - sendResponse info=null content=DirectByteBuffer@1e8de52[p=0,l=165,c=32768,r=165]={<<<event: message\nda...mStateEvent"}\n\n>>>ONE\\"}","type":"T...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00} complete=false committing=false callback=Blocker@8fca22{null}
2017-11-27 00:54:53.348 [DEBUG] [hread.strategy.ExecuteProduceConsume] - EPC Prod/org.eclipse.jetty.io.ManagedSelector$SelectorProducer@1853c9e produce exit
2017-11-27 00:54:53.349 [DEBUG] [e.jetty.util.thread.QueuedThreadPool] - ran EPC Prod/org.eclipse.jetty.io.ManagedSelector$SelectorProducer@1853c9e
2017-11-27 00:54:53.350 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@12a22f9[PROCESSING][i=null,cb=Blocker@8fca22{null}] generate: FLUSH (null,[p=0,l=165,c=32768,r=165],false)@COMMITTED
2017-11-27 00:54:53.359 [DEBUG] [org.eclipse.jetty.io.ChannelEndPoint] - flushed 171 SelectChannelEndPoint@1bed1a0{/2003:de:bbfd:b600:cc70:2df8:44c9:2fab:49484<->8080,Open,in,out,-,W,27/30000,HttpConnection@164ef4d}{io=0/0,kio=0,kro=1}
==> /var/log/openhab2/events.log <==
2017-11-27 00:54:53.361 [vent.ItemStateChangedEvent] - fritzdect200_office_power changed from 166.940 to 167.940
==> /var/log/openhab2/openhab.log <==
2017-11-27 00:54:53.365 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - Flushed=true 6/6+1 WriteFlusher@3f42f0{WRITING}
2017-11-27 00:54:53.370 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@12a22f9[PROCESSING][i=null,cb=Blocker@8fca22{null}] generate: DONE (null,[p=165,l=165,c=32768,r=0],false)@COMMITTED
2017-11-27 00:54:53.373 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Connection is not valid!
2017-11-27 00:54:53.376 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Connection is not valid!
2017-11-27 00:54:53.376 [DEBUG] [org.eclipse.jetty.server.HttpChannel] - sendResponse info=null content=DirectByteBuffer@1e8de52[p=0,l=162,c=32768,r=162]={<<<event: message\nda...mStateEvent"}\n\n>>>}\n\nONE\\"}","type"...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00} complete=false committing=false callback=Blocker@8fca22{null}
2017-11-27 00:54:53.379 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Could not store item 'fritzdect200_office_energy' in database with statement 'INSERT INTO Item22 (TIME, VALUE) VALUES(?,?) ON DUPLICATE KEY UPDATE VALUE=?;': No operations allowed after connection closed.
2017-11-27 00:54:53.382 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@12a22f9[PROCESSING][i=null,cb=Blocker@8fca22{null}] generate: FLUSH (null,[p=0,l=162,c=32768,r=162],false)@COMMITTED
2017-11-27 00:54:53.383 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Connection is not valid!
2017-11-27 00:54:53.386 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Error count exceeded 10. Disconnecting database.
2017-11-27 00:54:53.386 [DEBUG] [org.eclipse.jetty.io.ChannelEndPoint] - flushed 168 SelectChannelEndPoint@1bed1a0{/2003:de:bbfd:b600:cc70:2df8:44c9:2fab:49484<->8080,Open,in,out,-,W,21/30000,HttpConnection@164ef4d}{io=0/0,kio=0,kro=1}
2017-11-27 00:54:53.390 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - Flushed=true 6/6+1 WriteFlusher@3f42f0{WRITING}
2017-11-27 00:54:53.394 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@12a22f9[PROCESSING][i=null,cb=Blocker@8fca22{null}] generate: DONE (null,[p=162,l=162,c=32768,r=0],false)@COMMITTED
2017-11-27 00:54:53.404 [DEBUG] [org.eclipse.jetty.server.HttpChannel] - sendResponse info=null content=DirectByteBuffer@1e8de52[p=0,l=152,c=32768,r=152]={<<<event: message\nda...mStateEvent"}\n\n>>>eEvent"}\n\n}\n\nONE\\...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00} complete=false committing=false callback=Blocker@8fca22{null}
2017-11-27 00:54:53.413 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@12a22f9[PROCESSING][i=null,cb=Blocker@8fca22{null}] generate: FLUSH (null,[p=0,l=152,c=32768,r=152],false)@COMMITTED
2017-11-27 00:54:53.422 [DEBUG] [org.eclipse.jetty.io.ChannelEndPoint] - flushed 158 SelectChannelEndPoint@1bed1a0{/2003:de:bbfd:b600:cc70:2df8:44c9:2fab:49484<->8080,Open,in,out,-,W,28/30000,HttpConnection@164ef4d}{io=0/0,kio=0,kro=1}
2017-11-27 00:54:53.426 [DEBUG] [org.eclipse.jetty.io.WriteFlusher ] - Flushed=true 6/6+1 WriteFlusher@3f42f0{WRITING}
2017-11-27 00:54:53.429 [DEBUG] [.eclipse.jetty.server.HttpConnection] - org.eclipse.jetty.server.HttpConnection$SendCallback@12a22f9[PROCESSING][i=null,cb=Blocker@8fca22{null}] generate: DONE (null,[p=152,l=152,c=32768,r=0],false)@COMMITTED
2017-11-27 00:54:53.433 [DEBUG] [org.eclipse.jetty.server.HttpChannel] - sendResponse info=null content=DirectByteBuffer@1e8de52[p=0,l=159,c=32768,r=159]={<<<event: message\nda...mStateEvent"}\n\n>>>}\n\n}\n\nONE\\"}","ty...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00} complete=false committing=false callback=Blocker@8fca22{null}
# the database url like 'jdbc:mysql://<host>:<port>/<database>' (without quotes)
url=jdbc:mysql://127.0.0.1:3306/OpenHAB
# the database user
user=openhab
# the database password
password=blablabla
# the reconnection counter
#reconnectCnt=
# the connection timeout (in seconds)
#waitTimeout=
# Use MySQL Server time to store item values (=false) or use openHAB Server time (=true).
# For new installations, its recommend to set "localtime=true".
# (optional, defaults to false)
#localtime=true